Author vstinner
Recipients koobs, vstinner
Date 2019-09-09.08:33:36
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1568018017.02.0.0787122527223.issue38061@roundup.psfhosted.org>
In-reply-to
Content
> FreeBSD has a similar concept using /dev/fd "file-descriptor file system". (...) I'm not sure how it is supposed to work.

Sadly, on my FreeBSD VM, it seems like /dev/fd/ is not mounted with fdescfs by default, but as a regular directory with 3 hardcoded files 0, 1 and 2 which are character devices.

I had to mount fdescfs filesystem manually at /dev/fd/ :-(

$ cat /etc/fstab 
# Custom /etc/fstab for FreeBSD VM images
/dev/gpt/rootfs   /       ufs     rw      1       1
/dev/gpt/swapfs  none    swap    sw      0       0

Maybe it's an issue with "FreeBSD VM images" that I chose.

--

The FreeBSD CURRENT buildbot worker mounts /dev/fd:

CURRENT-amd64% cat /etc/fstab
# Device	Mountpoint	FStype	Options	Dump	Pass#
/dev/da0p2	none		swap	sw	0	0
/dev/da0p3	/		ufs	rw	1	1
fdescfs		/dev/fd		fdescfs	rw	0	0

CURRENT-amd64% mount|grep fd
fdescfs on /dev/fd (fdescfs)
History
Date User Action Args
2019-09-09 08:33:37vstinnersetrecipients: + vstinner, koobs
2019-09-09 08:33:37vstinnersetmessageid: <1568018017.02.0.0787122527223.issue38061@roundup.psfhosted.org>
2019-09-09 08:33:37vstinnerlinkissue38061 messages
2019-09-09 08:33:36vstinnercreate