Re: kern/60456: FFS_NO_SNAPSHOT option is not entirely effective
Taylor R Campbell <[email protected]> Sat, 18 Jul 2026 21:58:28 +0000
| Newsgroups | gmane.os.netbsd.bugs |
|---|---|
| Message-ID | <[email protected]> |
> Date: Sat, 18 Jul 2026 14:53:08 -0700 > From: Jason Thorpe <[email protected]> > > > On Jul 18, 2026, at 12:51 PM, Taylor R Campbell <[email protected]> wrote: > > > > Perhaps we should have an option that elides all of the file system > > snapshot code, but adds a small check so that if you try to mount a > > file system with any snapshots, it refuses to mount read/write -- only > > allows mounting file systems with snapshots read-only, so that you > > won't inadvertently corrupt the snapshots. > > Indeed, vfs_trans.c also contributes a non-trivial bit of .text on > smol machines. vfs_trans.c is for a lot more than just snapshots -- e.g., it is needed for unmounting or changing mount options, or for revoking vnodes either with revoke(2) (closing ttys) or detaching devices. Perhaps you can #ifdef out the cow pastures of vfs_trans.c but not the other parts.