[Bug 280383] Removing the last link to an open file prevents remounting read-only--suggest document and/or code change
Date: Fri, 26 Jul 2024 18:17:40 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=280383 Mark Johnston <markj@FreeBSD.org> changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Open CC| |markj@FreeBSD.org --- Comment #1 from Mark Johnston <markj@FreeBSD.org> --- > I got bit by this because, if this is documented at all, it is not documented in any obvious place. E.g., the mount(8) man page gives no clue that you can't do this; it only says, in the documentation for the -u option, that it will fail if any file is opened for write. mount(2) is similarly silent. The description of mount -u states: "An attempt to change from read-write to read-only will fail if any files on the file system are currently open for writing unless the -f flag is also specified." I don't agree with the notion that unlinked files deserve some special mention here. An unlinked file is still being used as file, it just doesn't have any names referring to it, just one or more open file descriptors. -- You are receiving this mail because: You are the assignee for the bug.