namespace question
Quoted 12 lines · ---- Mike Waychison
Quoted 10 lines · [email protected] wrote:
I don't believe the following to be an error, but I am curious how it occurs:
Running a kernel module using dpath iteratively on the
mnt_mountpointmember ... I get a curious doubling of the mount point names:proc
/proc/procproc
sysfs/sys/syssysfs
devpts/dev/pts/dev/ptsdevpts
tmpfs/dev/shm/dev/shmtmpfs/dev/hda1/boot/bootext2
usbfs/proc/bus/usb/bus/usbusbfs
Quoted 7 lines
Using the same algorithm with
mnt_rootproduces correct results.Quoted 1 line
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.
Quoted 11 lines · On Thu, Jun 23, 2005 at 02:31:02PM -0400, [email protected] wrote:
Quoted 10 lines
Quoted 8 lines
Running a kernel module using dpath iteratively on the
mnt_mountpointmember ... I get a curious doubling of the mount point names:proc
/proc/procproc
sysfs/sys/syssysfs
devpts/dev/pts/dev/ptsdevpts
tmpfs/dev/shm/dev/shmtmpfs/dev/hda1/boot/bootext2
usbfs/proc/bus/usb/bus/usbusbfsUsing the same algorithm with
mnt_rootproduces correct results.
Quoted 7 lines
Quoted 5 lines
Quoted 1 line
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...