lkml.org 
[lkml]   [2005]   [Jun]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: namespace question
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...
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-06-23 23:44    [W:0.032 / U:0.644 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site