diff options
author | Christoph Hellwig <hch@infradead.org> | 2008-12-09 04:47:33 -0500 |
---|---|---|
committer | Lachlan McIlroy <lachlan@redback.melbourne.sgi.com> | 2008-12-10 21:14:41 -0500 |
commit | 4d4be482a4d78ca906f45e99fd9fdb91e907f5ad (patch) | |
tree | 52974b28fecd3c11fc0596504270ffee976f1b1a /include/linux/fs.h | |
parent | 6d73cf133c5477f7038577bfeda603ce9946f8cb (diff) |
[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>
Diffstat (limited to 'include/linux/fs.h')
-rw-r--r-- | include/linux/fs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 51bd9370d437..965b9ba3865d 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h | |||
@@ -81,6 +81,14 @@ extern int dir_notify_enable; | |||
81 | #define FMODE_WRITE_IOCTL ((__force fmode_t)128) | 81 | #define FMODE_WRITE_IOCTL ((__force fmode_t)128) |
82 | #define FMODE_NDELAY_NOW ((__force fmode_t)256) | 82 | #define FMODE_NDELAY_NOW ((__force fmode_t)256) |
83 | 83 | ||
84 | /* | ||
85 | * Don't update ctime and mtime. | ||
86 | * | ||
87 | * Currently a special hack for the XFS open_by_handle ioctl, but we'll | ||
88 | * hopefully graduate it to a proper O_CMTIME flag supported by open(2) soon. | ||
89 | */ | ||
90 | #define FMODE_NOCMTIME ((__force fmode_t)2048) | ||
91 | |||
84 | #define RW_MASK 1 | 92 | #define RW_MASK 1 |
85 | #define RWA_MASK 2 | 93 | #define RWA_MASK 2 |
86 | #define READ 0 | 94 | #define READ 0 |