Created attachment 169917 [details] Patch to fix examples in fdescfs(5) man page The fdescfs(5) man page provides examples of how to mount the file system using mount(8) or by putting an entry in the fstab(5) file. The attached patch corrects these examples, as noticed by SirDice on the FreeBSD forums [1]. fstab(5) example: Old: fdescfs /dev/fd fdescfs rw 0 0 New: fdesc /dev/fd fdescfs rw 0 0 mount(8) example: Old: mount -t fdescfs null /dev/fd New: mount -t fdescfs fdesc /dev/fd [1] https://forums.freebsd.org/threads/50214/#post-319005
Has anyone got time to look at this minor manpage fix?
(In reply to Ben Woods from comment #1) Why? It works just fine for me currently: # mount | grep fd # mount -t fdescfs null /dev/fd # mount | grep fd fdescfs on /dev/fd (fdescfs) # umount /dev/fd # grep dev/fd /etc/fstab fdescfs /dev/fd fdescfs rw 0 0 # mount /dev/fd # mount | grep fd fdescfs on /dev/fd (fdescfs)
Synthetic filesystems, such as nullfs and fdescfs, ignore the mount "from" option so that it looks correct. I barely think that there is anything to fix.
Agreed. Indeed, the mount command ignores the fs_spec field whether it was determined from fstab(5) or from the command line directly. $ mount | grep fd $ sudo mount -t fdescfs wildgoosechase /dev/fd $ mount | grep fd fdescfs on /dev/fd (fdescfs) $ sudo umount /dev/fd $ grep fd /etc/fstab wildgoosechase /dev/fd fdescfs rw 0 0 $ sudo mount /dev/fd $ mount | grep fd fdescfs on /dev/fd (fdescfs) $ sudo umount /dev/fd Sorry for the noise. Agree there is nothing to fix.