lkml.org 
[lkml]   [1997]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: fmount system call
Date
  James Mastros <abszero@epix.net> writes:
> >
> Is there any way to get a fd to a device (not by the filename that points
> to it, but by a major/minor)? I don't see one, and you would need this to
> mount root.
>
We're talking about the userspace<->kernel interface here. Since by
definition, when the kernel mounts root there is no userspace program which
actually calls mount(2) or fmount(2) or whatever, this is no problem.

For remounting and such, simply pass -1 as the device and an open file or
directory somewhere under the mountpoint. (The mount point itself is a good
place since it accesses the mounted file system.)


\
 
 \ /
  Last update: 2005-03-22 13:40    [W:0.067 / U:25.316 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site