Re: fcntl(2) and other file systems like XFS

From: tytso@mit.edu
Date: Fri Mar 17 2000 - 03:31:52 EST


   From: Jim Mostek <mostek@sgi.com>
   Date: Thu, 16 Mar 2000 12:05:13 -0600 (CST)

   What should XFS or any other file system do with these? I guess they
   should return EINVAL. What if we accidentally or purposely get called
   with this? Applications don't normally check which file system they are
   running on. I don't suspect that all file systems should be including
   linux/include/linux/ext2_fs.h.

Well, if you don't recognize the ioctl, you should return EINVAL.....
If XFS doesn't support any ioctl's, then it can have a very trivial
ioctl() handler, and you don't hve to worry about any device collisions.

In practice the collision hasn't been a problem, since the 32-bit space
is relatively sparsely occupied.

                                                - Ted

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Mar 23 2000 - 21:00:22 EST