Re: [patch 3/3] vfs: fix sys_getcwd for detached mounts

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <viro@...>
Cc: <linux-kernel@...>, <linux-fsdevel@...>, <hch@...>
Date: Monday, June 23, 2008 - 12:58 pm

> Darn, this is wrong.  It should be looking at vfsmnt->mnt_namespace ==

And the thing is: getcwd() did return garbage for detached mounts,
except if the mounted dentry was the root of the filesystem.  Which
makes the "detached:..." change slightly prone to breaking something.
Still not very likely, but...

Miklos
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch 3/3] vfs: fix sys_getcwd for detached mounts, Miklos Szeredi, (Mon Jun 23, 12:11 pm)
Re: [patch 3/3] vfs: fix sys_getcwd for detached mounts, Miklos Szeredi, (Mon Jun 23, 12:53 pm)
Re: [patch 3/3] vfs: fix sys_getcwd for detached mounts, Miklos Szeredi, (Mon Jun 23, 12:58 pm)