public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Al Viro <viro@parcelfarce.linux.theplanet.co.uk>
To: cspalletta@adelphia.net
Cc: linux-kernel@vger.kernel.org, mikew@google.com
Subject: Re: namespace question
Date: Thu, 23 Jun 2005 22:23:52 +0100	[thread overview]
Message-ID: <20050623212352.GO29811@parcelfarce.linux.theplanet.co.uk> (raw)
In-Reply-To: <5353647.1119551462209.JavaMail.root@web1.mail.adelphia.net>

On Thu, Jun 23, 2005 at 02:31:02PM -0400, cspalletta@adelphia.net wrote:
> > > Running a kernel module using dpath iteratively on the mnt_mountpoint member ... I get a curious doubling of the mount point names:
> 
> >> proc /proc/proc proc
> >> sysfs /sys/sys sysfs
> >>  devpts /dev/pts/dev/pts devpts
> >>  tmpfs /dev/shm/dev/shm tmpfs
> >> /dev/hda1 /boot/boot ext2
> >> usbfs /proc/bus/usb/bus/usb usbfs
> 
> >  Using the same algorithm with mnt_root produces correct results.  
> 
> > >                 dentry = dget(vfsmnt_ptr->mnt_mountpoint);
> > 
> > should be:
> > 
> > dentry = dget(vfsmnt_ptr->mnt_root);
> 
> Yes I pointed that out above - what I want to know is why the doubling of the names for mnt_mntpoint.  It must be used for something, I suppose.

You are passing d_path() inconsistent arguments and get BS result.
Garbage in, garbage out...

  reply	other threads:[~2005-06-23 21:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-06-23 18:31 namespace question cspalletta
2005-06-23 21:23 ` Al Viro [this message]
  -- strict thread matches above, loose matches on Subject: below --
2005-06-23 15:03 cspalletta
2005-06-23 16:25 ` Mike Waychison

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050623212352.GO29811@parcelfarce.linux.theplanet.co.uk \
    --to=viro@parcelfarce.linux.theplanet.co.uk \
    --cc=cspalletta@adelphia.net \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mikew@google.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox