tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: mount_mfs: why chdir?



mouse%Rodents-Montreal.ORG@localhost (Mouse) writes:

>Perhaps, but that's equally true of every other mount operation
>(except, to a partial extent, union mounts).  Why would mount_mfs get
>special treatment?  I don't see any chdir call in, for example,
>mount_ffs.

mount_ffs applies the mount system call and exits.

mount_mfs forks a background process that has the "memory disk" mapped
and that terminates when you umount.

While the chdir() isn't necessary, it avoids keeping the current
directory busy.

mount does a realpath() to resolve relative mount paths, not sure
since when..



Home | Main Index | Thread Index | Old Index