Re: fmount system call

Werner Almesberger (
Tue, 29 Jul 1997 09:37:40 +0200 (MET DST)

James Mastros wrote:
> Is there any way to get a fd to a device (not by the filename that points
> to it, but by a major/minor)?

No, but if you have a writeable file system somewhere, you can always
create device files on the fly. (E.g. LILO does that sometimes.)

> I don't see one, and you would need this to mount root.

Without initrd, root is special anyway, so that's not a problem. With
initrd, you'd simply create a small /dev and proceed as normal. So
fmount vs. mount doesn't change anything for mounting root.

- Werner

 / Werner Almesberger, DI-LRC,EPFL,CH /