diff options
author | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-08-06 22:12:52 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@ppc970.osdl.org> | 2004-08-06 22:12:52 -0700 |
commit | 4a47ae69a72d3d8e92cfaa58e8d5a977ded1543d (patch) | |
tree | 83554a7d15dbc7c8f5a8397ac6f6775f747fbde1 /include | |
parent | 7d95b6c73a642382b7ca0ee88dacdcdecc7432cb (diff) | |
download | history-4a47ae69a72d3d8e92cfaa58e8d5a977ded1543d.tar.gz |
Add infrastructure for the VFS layer to mark files seekable.
We use a FMODE_LSEEK flag to match the existing read/write
bits. This allows us to check for seekability on a VFS level
for lseek/pread/pwrite, and cleans things up.
Update some sites that used the numeric constants to use
the symbolic values instead.
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/fs.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/fs.h b/include/linux/fs.h index 22dd6acdf9f1f2..44dbcaea3ebda2 100644 --- a/include/linux/fs.h +++ b/include/linux/fs.h @@ -74,6 +74,7 @@ extern int leases_enable, dir_notify_enable, lease_break_time; #define FMODE_READ 1 #define FMODE_WRITE 2 +#define FMODE_LSEEK 4 /* Internal kernel extension */ #define RW_MASK 1 #define RWA_MASK 2 |