summaryrefslogtreecommitdiffstats
path: root/include/linux/fuse.h
diff options
context:
space:
mode:
authorMiklos Szeredi <mszeredi@suse.cz>2007-10-18 03:07:01 -0700
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2007-10-18 14:37:30 -0700
commit17637cbaba592076c221dc045ca78422b4af6290 (patch)
tree9b8148b29cb2c776cd96278c0710a890054a2b78 /include/linux/fuse.h
parentd139d7ffd0c1e81e2a809909b4f8b121a0dc119a (diff)
downloadlinux-17637cbaba592076c221dc045ca78422b4af6290.tar.gz
linux-17637cbaba592076c221dc045ca78422b4af6290.tar.bz2
linux-17637cbaba592076c221dc045ca78422b4af6290.zip
fuse: improve utimes support
Add two new flags for setattr: FATTR_ATIME_NOW and FATTR_MTIME_NOW. These mean, that atime or mtime should be changed to the current time. Also it is now possible to update atime or mtime individually, not just together. Signed-off-by: Miklos Szeredi <mszeredi@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'include/linux/fuse.h')
-rw-r--r--include/linux/fuse.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/fuse.h b/include/linux/fuse.h
index a50d0d9ac7ae..43a77d73349c 100644
--- a/include/linux/fuse.h
+++ b/include/linux/fuse.h
@@ -83,6 +83,8 @@ struct fuse_file_lock {
#define FATTR_ATIME (1 << 4)
#define FATTR_MTIME (1 << 5)
#define FATTR_FH (1 << 6)
+#define FATTR_ATIME_NOW (1 << 7)
+#define FATTR_MTIME_NOW (1 << 8)
/**
* Flags returned by the OPEN request