Bug#669314: [PATCH] nfs: Show original device name verbatim in /proc/*/mount{s,info}
- To: Jonathan Nieder <jrnieder@gmail.com>
- Cc: Ben Hutchings <ben@decadent.org.uk>, "669314@bugs.debian.org" <669314@bugs.debian.org>, "viro@zeniv.linux.org.uk" <viro@zeniv.linux.org.uk>, "linux-nfs@vger.kernel.org" <linux-nfs@vger.kernel.org>, "linux-fsdevel@vger.kernel.org" <linux-fsdevel@vger.kernel.org>, Micheal Waltz <mwaltz@qualcomm.com>, "Gabriel Evanoff" <gevanoff@salk.edu>, "laurent+debian@u-picardie.fr" <laurent+debian@u-picardie.fr>
- Subject: Bug#669314: [PATCH] nfs: Show original device name verbatim in /proc/*/mount{s,info}
- From: "Myklebust, Trond" <Trond.Myklebust@netapp.com>
- Date: Wed, 31 Oct 2012 17:45:25 +0000
- Message-id: <[🔎] 4FA345DA4F4AE44899BD2B03EEEC2FA90929FA9E@SACEXCMBX04-PRD.hq.netapp.com>
- Reply-to: "Myklebust, Trond" <Trond.Myklebust@netapp.com>, 669314@bugs.debian.org
- In-reply-to: <[🔎] 20121022000119.GB9057@elie.Belkin>
- References: <[🔎] 7941E5E1-488D-4D0B-A21A-4E389EF6EBBA@salk.edu> <[🔎] 1350843832.22276.34.camel@deadeye.wl.decadent.org.uk> <[🔎] 20121022000119.GB9057@elie.Belkin>
On Sun, 2012-10-21 at 17:01 -0700, Jonathan Nieder wrote:
> (cc-ing Laurent in case he wants to test. Laurent, a "git am"-ready
> patch is at [1])
> Ben Hutchings wrote:
>
> > Since commit c7f404b ('vfs: new superblock methods to override
> > /proc/*/mount{s,info}'), nfs_path() is used to generate the mounted
> > device name reported back to userland.
> >
> > nfs_path() always generates a trailing slash when the given dentry is
> > the root of an NFS mount, but userland may expect the original device
> > name to be returned verbatim (as it used to be). Make this
> > canonicalisation optional and change the callers accordingly.
> >
> > Reported-and-tested-by: Chris Hiestand <chiestand@salk.edu>
> > Reference: http://bugs.debian.org/669314
> > Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
> > Cc: <stable@vger.kernel.org> # v2.6.39+
This patch will not apply to the upstream kernel; it seems rather to
have been generated incrementally against an older patch attempt.
Please regenerate and resend if you want this merged...
--
Trond Myklebust
Linux NFS client maintainer
NetApp
Trond.Myklebust@netapp.com
www.netapp.com
Reply to: