Re: [PATCH 09/26] make access() use mnt check

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

 



On Mon, 2007-06-25 at 11:27 -0700, Dave Hansen wrote:
> On Sat, 2007-06-23 at 08:45 +0100, Christoph Hellwig wrote:

> > You probably want to add a big comment explaining why it's fine here.
> 
> I've got this in the next set:
> 
> -
> -       if(IS_RDONLY(nd.dentry->d_inode))
> +       /*
> +        * This is a rare case where using __mnt_is_readonly()
> +        * is OK without a mnt_want/drop_write() pair.  Since
> +        * not actual write to the fs is performed here, we do

s/not/no/

> +        * not need to telegraph to that to anyone.  Also, we
> +        * accept that access is inherently racy, and know that
> +        * the fs might be remounted between this syscall, and
> +        * any action taken because of its result.
> +        */
> +       if (__mnt_is_readonly(nd.mnt))
>                 res = -EROFS;
> 

-- 
David Kleikamp
IBM Linux Technology Center

-
To unsubscribe from this list: send the line "unsubscribe linux-fsdevel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

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