The following reply was made to PR kern/122833; it has been noted by GNATS. From: Jaakko Heinonen <jh@saunalahti.fi> To: Craig Rodrigues <rodrigc@crodrigues.org> Cc: bug-followup@FreeBSD.org, Ga??l Roualland <gael.roualland@dial.oleane.com>, leon.kos@lecad.fs.uni-lj.si, rodrigc@FreeBSD.org, Yar Tikhiy <yar@comp.chem.msu.su> Subject: Re: kern/122833: [snapshots] [patch] mountd fails on nmount() after UFS snapshot creation with mount Date: Thu, 15 May 2008 13:35:39 +0300 Thank you for your quick response. On 2008-05-14, Craig Rodrigues wrote: > On Wed, May 14, 2008 at 06:56:40PM +0000, Craig Rodrigues wrote: > > That fix is wrong. The better fix would be to come up Yes, I probably should have stated more clearly that it was a quick hack. > Actually we have such a function. We need to do to the "snapshot" option > what we do to the "export" option in sys/kern/vfs_export.c. > --- ffs_vfsops.c 26 Mar 2008 20:48:07 -0000 1.340 > +++ ffs_vfsops.c 14 May 2008 21:00:23 -0000 There is also code in vfs_mount.c that sets the MNT_SNAPSHOT flag: (in vfs_donmount()) else if (strcmp(opt->name, "snapshot") == 0) fsflags |= MNT_SNAPSHOT; I wonder if we should add the option removal code also there or remove the "snapshot" handling completely from vfs_donmount(). For me it seems confusing that MNT_SNAPSHOT is first set in vfs_donmount() and then again in file system specific code but the snapshot option string is removed only in file system specific code. Thanks. -- Jaakko _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"
| David Miller | Slow DOWN, please!!! |
| Greg Kroah-Hartman | [PATCH 005/196] Chinese: add translation of SubmittingDrivers |
| Andrea Arcangeli | [PATCH 01 of 11] mmu-notifier-core |
| Andrew Morton | 2.6.23-rc3-mm1 |
git: | |
| Carl Worth | Difficulties in advertising a new branch to git newbies |
| Junio C Hamano | Re: [PATCH 3/3] Teach "git branch" about --new-workdir |
| Peter Stahlir | Git as a filesystem |
| Linus Torvalds | Re: irc usage.. |
| Wolfgang Walter | Re: Kernel oops with 2.6.26, padlock and ipsec: probably problem with fpu state ch... |
| Ingo Molnar | Re: iwlwifi: fix build bug in "iwlwifi: fix LED stall" |
| David Woodhouse | Re: [bug?] tg3: Failed to load firmware "tigon/tg3_tso.bin" |
| Cedric Le Goater | Re: [PATCH net-2.6.24 0/3]: More TCP fixes |
| Richard Stallman | Real men don't attack straw men |
| Jason Dixon | Wasting our Freedom |
| bofh | Re: Code signing in OpenBSD |
| no@spam@mgedv.net | Re: HUAWEI not recognized properly (3 modem) |
| high memory | 6 hours ago | Linux kernel |
| semaphore access speed | 9 hours ago | Applications and Utilities |
| the kernel how to power off the machine | 10 hours ago | Linux kernel |
| Easter Eggs in windows XP | 13 hours ago | Windows |
| Shared swap partition | 14 hours ago | Linux general |
| Root password | 14 hours ago | Linux general |
| Where/when DNOTIFY is used? | 16 hours ago | Linux kernel |
| How to convert Linux Kernel built-in module into a loadable module | 18 hours ago | Linux kernel |
| Linux 2.6.24 and I/O schedulers | 19 hours ago | Linux kernel |
| USB Driver -- Interrupt Polling -- A Little Help Please | 1 day ago | Linux general |
