[XFS] add a FMODE flag to make XFS invisible I/O less hacky
authorChristoph Hellwig <hch@infradead.org>
Tue, 9 Dec 2008 09:47:33 +0000 (04:47 -0500)
committerLachlan McIlroy <lachlan@redback.melbourne.sgi.com>
Thu, 11 Dec 2008 02:14:41 +0000 (13:14 +1100)
commit4d4be482a4d78ca906f45e99fd9fdb91e907f5ad
tree52974b28fecd3c11fc0596504270ffee976f1b1a
parent6d73cf133c5477f7038577bfeda603ce9946f8cb
[XFS] add a FMODE flag to make XFS invisible I/O less hacky

XFS has a mode called invisble I/O that doesn't update any of the
timestamps.  It's used for HSM-style applications and exposed through
the nasty open by handle ioctl.

Instead of doing directly assignment of file operations that set an
internal flag for it add a new FMODE_NOCMTIME flag that we can check
in the normal file operations.

(addition of the generic VFS flag has been ACKed by Al as an interims
 solution)

Signed-off-by: Christoph Hellwig <hch@lst.de>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
fs/xfs/linux-2.6/xfs_file.c
fs/xfs/linux-2.6/xfs_ioctl.c
fs/xfs/linux-2.6/xfs_ioctl.h
fs/xfs/linux-2.6/xfs_ioctl32.c
fs/xfs/linux-2.6/xfs_iops.h
fs/xfs/xfs_vnodeops.h
include/linux/fs.h