On Thu, Aug 10, 2023 at 14:05:57 +0000, Jeremy C. Reed wrote: > I saw in mount(8): > > "The set of options is determined by first extracting the options for > the file system from the fstab(5) file ..." > > But when I did > > mount -u / > > Then mount didn't show the "log". > > t1:reed$ grep ffs /etc/fstab > NAME=8ab393d0-4743-11e8-9359-b8ac6fdf499d / ffs > rw,log 1 1 > > So then I did > > mount -u -o log / > > mount then showed: > > /dev/dk0 on / type ffs (log, local) > > Does the mount -u used the fstab options? > > (Sorry I didn't read the code or look at newer versions.)
I'm a bit surprised the man page says that. I can see: sbin/mount/mount.c:243 /* ignore the fstab file options. */ fs->fs_mntops = NULL; that has been there for decades. I guess I sort of always unconsciously assumed that, b/c that seems like the right thing for -u to do. -uwe