Miklos Szeredi d139d7ffd0 VFS: allow filesystems to implement atomic open+truncate
Add a new attribute flag ATTR_OPEN, with the meaning: "truncation was
initiated by open() due to the O_TRUNC flag".

This way filesystems wanting to implement truncation within their ->open()
method can ignore such truncate requests.

This is a quick & dirty hack, but it comes for free.

Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Andreas Dilger <adilger@clusterfs.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2007-10-18 14:37:30 -07:00
..
2007-10-17 14:31:07 -05:00
2007-10-17 08:42:47 -07:00
2007-10-15 17:56:36 -07:00
2007-05-08 11:14:59 -07:00
2007-10-17 08:43:02 -07:00
2007-10-16 09:43:07 -07:00
2007-10-17 18:49:59 -04:00
2007-10-17 08:43:02 -07:00
2007-10-17 08:43:01 -07:00
2007-10-18 14:37:20 -07:00
2007-10-17 08:42:54 -07:00
2007-10-17 08:42:45 -07:00
2007-07-19 10:04:45 -07:00
2007-07-29 17:09:29 -07:00
2007-10-16 09:42:53 -07:00
2007-10-17 08:42:56 -07:00
2007-05-18 13:09:34 -07:00
2007-10-17 08:43:07 -07:00
2007-10-17 08:43:01 -07:00
2007-05-21 09:18:19 -07:00
2007-05-08 11:15:01 -07:00
2007-10-17 08:43:02 -07:00
2007-10-17 08:43:02 -07:00
2007-05-08 11:15:09 -07:00
2007-07-16 09:05:48 -07:00
2007-10-17 18:50:00 -04:00
2007-10-16 09:42:54 -07:00
2007-07-19 10:04:45 -07:00
2007-10-17 08:43:07 -07:00
2007-10-15 17:00:19 +02:00
2007-07-27 15:40:13 -07:00
2007-10-17 08:43:01 -07:00
2007-10-17 08:43:07 -07:00
2007-10-17 08:42:52 -07:00