Re: Question about `generic_write_checks()` FIXME comment

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 30, 2021 at 03:07:25AM -0500, Hans Montero wrote:
 
> Furthermore, why doesn't VFS do the `O_APPEND` check itself instead of
> delegating the task to the filesystems? It seems like a universal check,
> especially given the following snippet on `O_APPEND` from the man page for
> open(2):
> 
>   APPEND
>       The file is opened in append mode. Before each write(2), the file offset
>       is positioned at the end of the file, as if with lseek(2).

Because we need to make sure that no other thread will grow the file between
the check and actual IO?  And exclusion might very well differ for different
filesystems.  Incidentally, what kind of semantics could you assign to
O_APPEND on a block device?  Other than "ignore it", that is...



[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux