Re: [patch v3] vfs: fix sys_getcwd for detached mounts

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

 



> On Mon, Jun 23, 2008 at 08:25:26PM +0200, Miklos Szeredi wrote:
> > I tested this one in various situations, and it appears to do what
> > it's supposed to.
> > 
> > A somewhat analogous issue is if we have cwd (or fd) outside
> > current->root.  Should we add a prefix for that case as well?  Perhaps
> > a double slash?
> 
> OK, I've applied everything except the last one (all in for-linus in
> vfs-2.6.git).

Thanks.  Could you please open a branch for this last patch and get
that into linux-next ?  I've also got some other cleanup stuff
pending, and Andrew would prefer all VFS stuff to go through you.

>  As for the stuff outside current->root (or other
> namespace, for that matter)...  I don't like the idea of using // -
> as it is, we have a nice sane check (path[0] != '/') and if
> anything, I'd consider going for deleted:<path> instead of <path>
> (deleted) as we have now.  _That_ would eliminate the major
> annoyance with handling of unlinked/rmdired - we'd get rid of
> guessing whether that's a file really called "a (deleted)" or an
> unlinked one that used to be called "a"...

Yes, it would be nice and consistent.  OTOH, there is a real chance of
breaking some stuff, that already tries to parse "(deleted)".  I don't
think it's worth touching that thing.

Miklos
--
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