Uploaded image for project: 'Lustre'
  1. Lustre
  2. LU-1351

lfs path2fid and llapi_path2fid() fail for block or character special files

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Minor
    • Lustre 2.3.0
    • Lustre 2.2.0, Lustre 2.3.0
    • None
    • # uname -r
      2.6.32-220.el6.l22.x86_64
      # cat /proc/fs/lustre/version
      lustre: 2.2.0
      kernel: patchless_client
      build: 2.2.0--PRISTINE-2.6.32-220.13.1.el6.l22.x86_64
    • 3
    • 4628

    Description

      llapi_path2fid() compares errno to EINVAL rather than ENOTTY to test for failures due the file being block or character special.

      1. /usr/lib64/lustre/tests/llmount.sh
      2. cd /mnt/lustre
      3. mknod null c 1 3
      4. stat null
        File: `null'
        Size: 0 Blocks: 0 IO Block: 4096 character special file
        Device: 2c54f966h/743766374d Inode: 144115238810157090 Links: 1 Device type: 1,3
        Access: (0644/crw-r-r-) Uid: ( 0/ root) Gid: ( 0/ root)
        Access: 2012-04-27 09:14:40.000000000 -0500
        Modify: 2012-04-27 09:14:40.000000000 -0500
        Change: 2012-04-27 09:14:40.000000000 -0500
      5. lfs path2fid null
        can't get fid for null: Inappropriate ioctl for device

      Attachments

        Activity

          People

            ys Yang Sheng
            jhammond John Hammond
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: