Tigran Aivazian writes:
>
>
> Richard,
>
> Using devfs /dev/root is fine to the real original root but not fine
> to find the device of the filesystem which contains the chroot;d
> environment. But rdev works fine in that case. Try it and see
> (using devfs was the first thing that came to my mind when I thought
> of answering his question but having tried I saw that only rdev
> would give what he wants).
Hm. The chroot(2) call changes the apparent root to a directory. This
isn't necessarily the root of a mounted FS. So /dev/root should stay
as the root filesystem.
To get the apparent root, look at /proc/self/root instead.
Regards,
Richard....
Permanent: [EMAIL PROTECTED]
Current: [EMAIL PROTECTED]
- /proc/mounts, /dev/root Andrew Clausen
- Re: /proc/mounts, /dev/root Richard Gooch
- Re: /proc/mounts, /dev/root Tigran Aivazian
- [patch-2.3.99-pre4] Re: /proc/mounts, /dev/... Richard Gooch
- [patch-2.3.99-pre4] Re: /proc/mounts, /... Tigran Aivazian
- Re: [patch-2.3.99-pre4] Re: /proc/... Richard Gooch
- Re: /proc/mounts, /dev/root Tigran Aivazian
- Re: /proc/mounts, /dev/root Andrew Clausen
- Re: /proc/mounts, /dev/root Tigran Aivazian
- Re: /proc/mounts, /dev/root Andrew Clausen
- Re: /proc/mounts, /dev/root Guest section DW
- Re: /proc/mounts, /dev/root Jan-Benedict Glaw
- Re: /proc/mounts, /dev/root Andrew Clausen
- Re: /proc/mounts, /dev/root Andrew Clausen
