cvs commit: src/sys/kern vfs_mount.c src/sys/netinet6 icmp6.c

2008-09-03 Thread Simon L. Nielsen
simon 2008-09-03 19:09:47 UTC FreeBSD src repository Modified files:(Branch: RELENG_7) sys/kern vfs_mount.c sys/netinet6 icmp6.c Log: SVN rev 182740 on 2008-09-03 19:09:47Z by simon - Fix amd64 local privilege escalation. [08:07] - Fix nm

cvs commit: src/sys/kern vfs_mount.c src/sys/netinet6 icmp6.c

2008-09-03 Thread Simon L. Nielsen
simon 2008-09-03 19:09:47 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c sys/netinet6 icmp6.c Log: SVN rev 182740 on 2008-09-03 19:09:47Z by simon - Fix amd64 local privilege escalation. [08:07] - Fix nmount(2) local privilege es

cvs commit: src/sys/kern vfs_mount.c

2008-08-30 Thread Craig Rodrigues
rodrigc 2008-08-30 23:43:56 UTC FreeBSD src repository Modified files:(Branch: RELENG_7) sys/kern vfs_mount.c Log: SVN rev 182496 on 2008-08-30 23:43:56Z by rodrigc MFC: 182025 In nmount(), when we see the "force" option, set the MNT_FORCE flag, bu

cvs commit: src/sys/kern vfs_mount.c

2008-08-23 Thread Craig Rodrigues
rodrigc 2008-08-23 22:40:29 UTC FreeBSD src repository Modified files:(Branch: RELENG_7) sys/kern vfs_mount.c Log: SVN rev 182083 on 2008-08-23 22:40:29Z by rodrigc MFC: r180484 Delete "update" from the mount options after we have set MNT_UPDATE in

cvs commit: src/sys/kern vfs_mount.c

2008-08-22 Thread Craig Rodrigues
rodrigc 2008-08-23 01:16:09 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: SVN rev 182025 on 2008-08-23 01:16:09Z by rodrigc In nmount(), when we see the "force" option, set the MNT_FORCE flag, but do not persist "force" in the options l

cvs commit: src/sys/kern vfs_mount.c

2008-08-13 Thread Konstantin Belousov
kib 2008-08-13 12:40:23 UTC FreeBSD src repository Modified files:(Branch: RELENG_7) sys/kern vfs_mount.c Log: SVN rev 181686 on 2008-08-13 12:40:23Z by kib MFC r181345: User may do "mount -o snapshot ...", that causes new FFS mount to be performe

cvs commit: src/sys/kern vfs_mount.c src/sys/ufs/ffs ffs_vfsops.c

2008-08-10 Thread Konstantin Belousov
kib 2008-08-10 12:15:36 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c sys/ufs/ffs ffs_vfsops.c Log: SVN rev 181528 on 2008-08-10 12:15:36Z by kib Revert r181345. Move the NULL pointer check to the vfs_deleteopt() function.

cvs commit: src/sys/kern vfs_mount.c

2008-07-12 Thread Craig Rodrigues
rodrigc 2008-07-12 20:12:40 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: SVN rev 180484 on 2008-07-12 20:12:40Z by rodrigc In nmount(), if we see "update" in the mount options, set MNT_UPDATE in fsflags, and delete the "update" option

cvs commit: src/sys/kern vfs_mount.c src/sys/ufs/ffs ffs_vfsops.c

2008-06-26 Thread John Baldwin
jhb 2008-06-27 00:37:08 UTC FreeBSD src repository Modified files:(Branch: RELENG_7) sys/kern vfs_mount.c sys/ufs/ffs ffs_vfsops.c Log: SVN rev 180043 on 2008-06-27 00:37:08Z by jhb Consolidate merge info in sys/. Revision Changes

cvs commit: src/sys/kern vfs_mount.c src/sys/ufs/ffs ffs_vfsops.c

2008-06-26 Thread Craig Rodrigues
rodrigc 2008-06-26 22:58:20 UTC FreeBSD src repository Modified files:(Branch: RELENG_7) sys/kern vfs_mount.c sys/ufs/ffs ffs_vfsops.c Log: SVN rev 180040 on 2008-06-26 22:58:20Z by rodrigc ffs_vfsops.c: MFC 179269-179270 - delete "sna

cvs commit: src/sys/kern vfs_mount.c

2008-06-08 Thread Wojciech A. Koszek
wkoszek 2008-06-08 20:43:27 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: SVN rev 179658 on 2008-06-08 20:43:27Z by wkoszek Remove checks against DDB, which isn't used in this file. My intention is to bring no functional change. D

cvs commit: src/sys/kern vfs_mount.c

2008-05-23 Thread Craig Rodrigues
rodrigc 2008-05-23 23:33:07 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Do not convert the "snapshot" string to the MNT_SNAPSHOT flag here, since we do it further down in ffs_vfsops.c MFC after: 1 month Revision ChangesPa

cvs commit: src/sys/kern vfs_mount.c

2008-04-29 Thread Roman Divacky
rdivacky2008-04-29 21:40:11 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Lock filedesc exclusively when modifying fd_[cr]dir. This is probably harmless but it's better to lock it correctly. Approved by:kib (mentor) Revision C

cvs commit: src/sys/kern vfs_mount.c src/sys/sys vnode.h src/sys/ufs/ffs ffs_softdep.c

2008-03-23 Thread Konstantin Belousov
kib 2008-03-23 13:45:24 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c sys/sys vnode.h sys/ufs/ffs ffs_softdep.c Log: Yield the cpu in the kernel while iterating the list of the vnodes belonging to the mountpoint.

Re: cvs commit: src/sys/kern vfs_mount.c

2008-02-18 Thread Dag-Erling Smørgrav
Yar Tikhiy <[EMAIL PROTECTED]> writes: > Dag-Erling Smørgrav <[EMAIL PROTECTED]> writes: > > Can you guarantee that this will not f*** up the bootp / dhcp + > > nfsroot case? There are dragons in that code which were decidedly > > not funny to track down and fix. > Indeed; or, as a Russian proverb

Re: cvs commit: src/sys/kern vfs_mount.c

2008-02-18 Thread Attila Nagy
On 2008.02.18. 15:26, Yar Tikhiy wrote: On Mon, Feb 18, 2008 at 01:50:34PM +0100, Dag-Erling Sm??rgrav wrote: Yar Tikhiy <[EMAIL PROTECTED]> writes: Log: In the new order of things dictated by nmount(2), a read-only mount is to be requested via a "ro" option. At the same time, MN

Re: cvs commit: src/sys/kern vfs_mount.c

2008-02-18 Thread Yar Tikhiy
On Mon, Feb 18, 2008 at 01:50:34PM +0100, Dag-Erling Sm??rgrav wrote: > Yar Tikhiy <[EMAIL PROTECTED]> writes: > > Log: > > In the new order of things dictated by nmount(2), a read-only mount > > is to be requested via a "ro" option. At the same time, MNT_RDONLY > > is gradually becoming a

Re: cvs commit: src/sys/kern vfs_mount.c

2008-02-18 Thread Dag-Erling Smørgrav
Yar Tikhiy <[EMAIL PROTECTED]> writes: > Log: > In the new order of things dictated by nmount(2), a read-only mount > is to be requested via a "ro" option. At the same time, MNT_RDONLY > is gradually becoming an indicator of the current state of the FS > instead of a command flag. Today

cvs commit: src/sys/kern vfs_mount.c

2008-02-18 Thread Yar Tikhiy
yar 2008-02-18 10:10:42 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Add a remark on a questionable property of vfs_mergeopts(). Revision ChangesPath 1.275 +7 -0 src/sys/kern/vfs_mount.c

cvs commit: src/sys/kern vfs_mount.c

2008-02-14 Thread Yar Tikhiy
yar 2008-02-14 17:04:31 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: In the new order of things dictated by nmount(2), a read-only mount is to be requested via a "ro" option. At the same time, MNT_RDONLY is gradually becoming an indica

cvs commit: src/sys/kern vfs_mount.c

2008-01-19 Thread Craig Rodrigues
rodrigc 2008-01-20 02:38:42 UTC FreeBSD src repository Modified files:(Branch: RELENG_7_0) sys/kern vfs_mount.c Log: MFC: 1.270 - In vfs_scanopt(), make sure that the mount option value is not NULL before calling vsscanf(). PR: 118531

cvs commit: src/sys/kern vfs_mount.c

2008-01-16 Thread Craig Rodrigues
rodrigc 2008-01-17 04:24:53 UTC FreeBSD src repository Modified files:(Branch: RELENG_7) sys/kern vfs_mount.c Log: MFC: 1.270 - In vfs_scanopt(), make sure that the mount option value is not NULL before calling vsscanf(). PR: 118531

cvs commit: src/sys/kern vfs_mount.c

2007-12-31 Thread Craig Rodrigues
rodrigc 2007-12-31 23:44:53 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: In vfs_scanopt(), make sure that the mount option value is not NULL before calling vsscanf(). PR: 118531 Submitted by: Jaakko Heinonen MFC after:

cvs commit: src/sys/kern vfs_mount.c

2007-12-04 Thread Craig Rodrigues
rodrigc 2007-12-05 03:26:14 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: In nmount(), internally convert the mount option: "rdonly" to "ro". This makes updates mounts such as: "mount -u -o rdonly" work more like, "mount -u -o ro". Ref

cvs commit: src/sys/kern vfs_mount.c

2007-11-01 Thread Craig Rodrigues
rodrigc 2007-11-01 14:09:07 UTC FreeBSD src repository Modified files:(Branch: RELENG_7) sys/kern vfs_mount.c Log: MFC: 1.267 In nmount(), if MNT_ROOT is in the mount flags, filter it out instead of returning an error. (1) This makes the behavior consis

cvs commit: src/sys/kern vfs_mount.c

2007-10-27 Thread Craig Rodrigues
rodrigc 2007-10-27 15:59:18 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: In nmount(), if MNT_ROOT is in the mount flags, filter it out instead of returning an error. (1) This makes the behavior consistent with mount(2). (2) This makes u

cvs commit: src/sys/kern vfs_mount.c

2007-07-26 Thread Pawel Jakub Dawidek
pjd 2007-07-26 16:52:58 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: The v_mountedhere field is protected by the vnode lock, not vnode's internal lock. Approved by:re (rwatson) Revision ChangesPath 1.263 +1 -1

cvs commit: src/sys/kern vfs_mount.c

2007-05-10 Thread Konstantin Belousov
kib 2007-05-10 09:18:07 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/kern vfs_mount.c Log: MFC rev. 1.259: Allow the dounmount() to proceed even for doomed coveredvp. RevisionChangesPath 1.196.2.23 +1 -3 src/sys/k

cvs commit: src/sys/kern vfs_mount.c

2007-04-26 Thread Konstantin Belousov
kib 2007-04-26 08:56:57 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Allow the dounmount() to proceed even for doomed coveredvp. In dounmount(), before or while vn_lock(coveredvp) is called, coveredvp vnode may be VI_DOOMED due to on

cvs commit: src/sys/kern vfs_mount.c

2007-04-09 Thread Nate Lawson
njl 2007-04-09 21:10:04 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Restore the locking for the sleep/wakeup to avoid waiting an extra 1 sec if a race was lost. We're still single-threaded at this point, but just be safe for the futur

cvs commit: src/sys/kern vfs_mount.c

2007-04-09 Thread Nate Lawson
njl 2007-04-09 19:23:52 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Clean up the root mount and mount wait code. No mutexes are needed here since a spurious wakeup() is the only possible outcome and this is fine in the BSD programming

cvs commit: src/sys/kern vfs_mount.c

2007-04-01 Thread Pawel Jakub Dawidek
pjd 2007-04-01 13:08:05 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: I think the code I'm removing here is completely bogus. vfs_flags field is used for VFCF_* flags which are given at file system driver creation time (via VFS_SET(9)) m

cvs commit: src/sys/kern vfs_mount.c src/sys/sys mount.h

2007-03-31 Thread Pawel Jakub Dawidek
pjd 2007-03-31 22:44:45 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c sys/sys mount.h Log: Make vfs_mount_destroy() and vfs_freeopts() non-static, I'd like to use them. Revision ChangesPath 1.249 +2 -3 src/s

cvs commit: src/sys/kern vfs_mount.c

2007-03-17 Thread Pawel Jakub Dawidek
pjd 2007-03-18 02:39:19 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Don't deny unmounting file systems for jailed processes immediately, allow prison_priv_check() to decide what to do. This change is suppose not to change current (s

cvs commit: src/sys/kern vfs_mount.c

2007-03-14 Thread Pawel Jakub Dawidek
pjd 2007-03-14 13:09:59 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Don't deny mounting for jailed processes immediately, allow prison_priv_check() to decide what to do. This change is suppose not to change current (security) behavi

cvs commit: src/sys/kern vfs_mount.c

2007-03-14 Thread Pawel Jakub Dawidek
pjd 2007-03-14 12:54:10 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: White space nits. Revision ChangesPath 1.246 +14 -16src/sys/kern/vfs_mount.c ___ cvs-all@freebsd.org mailin

cvs commit: src/sys/kern vfs_mount.c

2007-02-12 Thread Olivier Houchard
cognet 2007-02-13 01:28:49 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Make vfs_getopts() set *error to ENOENT if the option wasn't found, so that consumers don't have to check for both error and the return value (some of them actually do

cvs commit: src/sys/kern vfs_mount.c

2007-01-27 Thread Craig Rodrigues
rodrigc 2007-01-28 01:56:51 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/kern vfs_mount.c Log: MFC: 1.199, 1.200, 1.219, 1.222 Cleanups to vfs_donmount() function to better handle "mount -u -o ro", "mount -r /usr", "mount -ar". PR:

cvs commit: src/sys/kern vfs_mount.c src/sys/sys mount.h

2006-10-24 Thread Konstantin Belousov
kib 2006-10-24 15:02:40 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/kern vfs_mount.c sys/sys mount.h Log: MFC rev. 1.232, 1.233, 1.240 of the src/sys/kern/vfs_mount.c, and rev. 1.215 of src/sys/sys/mount.h (with c

cvs commit: src/sys/kern vfs_mount.c src/sys/ufs/ffs ffs_softdep.c

2006-10-09 Thread Tor Egge
tegge 2006-10-09 19:56:37 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/kern vfs_mount.c sys/ufs/ffs ffs_softdep.c Log: MFC: Reduce fluctuations of mnt_flag to allow unlocked readers to get a slightly more consistent v

cvs commit: src/sys/kern vfs_mount.c

2006-10-09 Thread Tor Egge
tegge 2006-10-09 19:52:25 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/kern vfs_mount.c Log: MFC: Don't restore MNT_QUOTA bit in mnt_flag after a failed mount with MNT_UPDATE flag, closing a race between nmount() and quotactl().

cvs commit: src/sys/kern vfs_mount.c

2006-10-09 Thread Tor Egge
tegge 2006-10-09 19:50:05 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/kern vfs_mount.c Log: MFC: Don't restore mnt_kern_flag on failed MNT_UPDATE mount, it can race with dounmount(), causing loss of MNTK_UNMOUNT flag. Approve

cvs commit: src/sys/kern vfs_mount.c

2006-09-26 Thread Tor Egge
tegge 2006-09-27 00:40:11 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/kern vfs_mount.c Log: MFC rev 1.226: Unbusy mount before destruction. Approved by:re (kensmith) RevisionChangesPath 1.196.2.15 +6 -5 src/

cvs commit: src/sys/kern vfs_mount.c

2006-09-26 Thread Tor Egge
tegge 2006-09-27 00:39:19 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/kern vfs_mount.c Log: MFC rev 1.221 : Print dangling vnodes before panic at unmount. Approved by:re (kensmith) RevisionChangesPath 1.196.2.14

cvs commit: src/sys/kern vfs_mount.c

2006-09-26 Thread Tor Egge
tegge 2006-09-27 00:33:32 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/kern vfs_mount.c Log: MFC rev 1.220: Make struct mount type stable. Approved by:re (kensmith) RevisionChangesPath 1.196.2.13 +34 -8 src/sy

cvs commit: src/sys/kern vfs_mount.c src/sys/ufs/ffs ffs_softdep.c

2006-09-25 Thread Tor Egge
tegge 2006-09-26 04:20:09 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c sys/ufs/ffs ffs_softdep.c Log: Reduce fluctuations of mnt_flag to allow unlocked readers to get a slightly more consistent view. Revision ChangesPath

cvs commit: src/sys/kern vfs_mount.c

2006-09-25 Thread Tor Egge
tegge 2006-09-26 04:18:36 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Don't restore MNT_QUOTA bit in mnt_flag after a failed mount with MNT_UPDATE flag, closing a race between nmount() and quotactl(). Revision ChangesPath 1.237

cvs commit: src/sys/kern vfs_mount.c

2006-09-25 Thread Tor Egge
tegge 2006-09-26 04:15:04 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Don't restore mnt_kern_flag on failed MNT_UPDATE mount, it can race with dounmount(), causing loss of MNTK_UNMOUNT flag. Revision ChangesPath 1.235 +2 -5

cvs commit: src/sys/kern vfs_mount.c

2006-09-19 Thread Konstantin Belousov
kib 2006-09-19 14:04:12 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Fix the bug in rev. 1.232. If vfs_suser returned false, coveredvp shall be unlocked only if it really exists. Found with: Coverity Prevent(tm) CID:1535

cvs commit: src/sys/kern vfs_mount.c

2006-09-18 Thread Konstantin Belousov
kib 2006-09-18 15:35:22 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Fix the race while waiting for coveredvp lock during unmount. The vnode may be recycled during the sleep, wrap the vn_lock with vhold/vdrop. Check that coveredvp still

cvs commit: src/sys/kern vfs_mount.c

2006-08-26 Thread Marius Strobl
marius 2006-08-26 16:28:19 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Fix another bug introduced with rev. 1.204; in vfs_donmount() if the 'vfs_getopt(optlist, "errmsg", (void **)&errmsg, &errmsg_len)' call fails, 'errmsg' is left uninit

cvs commit: src/sys/kern vfs_mount.c

2006-08-25 Thread Pawel Jakub Dawidek
pjd 2006-08-25 15:13:49 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Fix comment. Revision ChangesPath 1.230 +1 -1 src/sys/kern/vfs_mount.c ___ cvs-all@freebsd.org mailing lis

Re: cvs commit: src/sys/kern vfs_mount.c

2006-08-24 Thread Kris Kennaway
Thanks! On Thu, Aug 24, 2006 at 06:52:28PM +, Marius Strobl wrote: > marius 2006-08-24 18:52:28 UTC > > FreeBSD src repository > > Modified files: > sys/kern vfs_mount.c > Log: > Fix a bug introduced with rev. 1.204; in vfs_donmount() use > copyout(9) instead

cvs commit: src/sys/kern vfs_mount.c

2006-08-24 Thread Marius Strobl
marius 2006-08-24 18:52:28 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Fix a bug introduced with rev. 1.204; in vfs_donmount() use copyout(9) instead of copystr(9) for copying the errmsg from kernel- to user-space. This fixes a panic on s

cvs commit: src/sys/kern vfs_mount.c

2006-06-05 Thread Robert Watson
rwatson 2006-06-05 15:32:07 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Audit some arguments to nmount(), mount(), umount(). Submitted by: wsalamon Obtained from: TrustedBSD Project Revision ChangesPath 1.227 +10 -1

cvs commit: src/sys/kern vfs_mount.c

2006-06-03 Thread Craig Rodrigues
rodrigc 2006-06-03 21:47:12 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/kern vfs_mount.c Log: MFC: 1.207: Add "errmsg" to list of global mount options. 1.225: Add "update" mount option to global_opts array,

Re: cvs commit: src/sys/kern vfs_mount.c

2006-06-02 Thread Pawel Jakub Dawidek
On Fri, Jun 02, 2006 at 06:25:36PM -0400, Craig Rodrigues wrote: +> On Fri, Jun 02, 2006 at 08:29:02PM +, Pawel Jakub Dawidek wrote: +> > pjd 2006-06-02 20:29:02 UTC +> > +> > FreeBSD src repository +> > +> > Modified files: +> > sys/kern vfs_mount.c +> > Log: +

Re: cvs commit: src/sys/kern vfs_mount.c

2006-06-02 Thread Craig Rodrigues
On Fri, Jun 02, 2006 at 08:29:02PM +, Pawel Jakub Dawidek wrote: > pjd 2006-06-02 20:29:02 UTC > > FreeBSD src repository > > Modified files: > sys/kern vfs_mount.c > Log: > Fix a problem introduced in revision 1.220. On mount(2) failure, don't > forget to u

cvs commit: src/sys/kern vfs_mount.c

2006-06-02 Thread Pawel Jakub Dawidek
pjd 2006-06-02 20:29:02 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Fix a problem introduced in revision 1.220. On mount(2) failure, don't forget to unbusy file system before its destruction. This fixes the following warning on moun

cvs commit: src/sys/kern vfs_mount.c

2006-05-28 Thread Craig Rodrigues
rodrigc 2006-05-28 18:44:47 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/kern vfs_mount.c Log: MFC: 1.208 In devfs_first(), set mp->mnt_opt to a valid empty list of mount options instead of leaving it NULL. This eliminates a kernel pan

cvs commit: src/sys/kern vfs_mount.c

2006-05-25 Thread Craig Rodrigues
rodrigc 2006-05-26 02:38:48 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Add "update" mount option to global_opts array, for use with vfs_filteropt(). Revision ChangesPath 1.225 +1 -0 src/sys/kern/vfs_mount.c

Re: cvs commit: src/sys/kern vfs_mount.c

2006-05-13 Thread Kris Kennaway
On Sun, May 14, 2006 at 01:51:38AM +, Craig Rodrigues wrote: > rodrigc 2006-05-14 01:51:38 UTC > > FreeBSD src repository > > Modified files: > sys/kern vfs_mount.c > Log: > For nmount(), if "rw" is specified as a mount option, > add "noro" to the list of mount

cvs commit: src/sys/kern vfs_mount.c

2006-05-13 Thread Craig Rodrigues
rodrigc 2006-05-14 01:51:38 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: For nmount(), if "rw" is specified as a mount option, add "noro" to the list of mount options. This allows a read-only mount to be converted to read-write via: moun

cvs commit: src/sys/kern vfs_mount.c

2006-03-31 Thread Jeff Roberson
jeff2006-03-31 23:38:15 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: - When there are dangling vnodes at unmount print them before we panic. Sponsored by: Isilon Systems, Inc. Revision ChangesPath 1.221 +6 -1 sr

cvs commit: src/sys/kern vfs_mount.c

2006-03-30 Thread Jeff Roberson
jeff2006-03-31 03:49:51 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: - Allocate mounts from a uma zone that uses UMA_ZONE_NOFREE to prevent mount memory from being reclaimed. This resolves a number of race conditions described i

cvs commit: src/sys/kern vfs_mount.c

2006-03-13 Thread Ruslan Ermilov
ru 2006-03-13 14:58:37 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: The mount(8) manpage says: "In case of conflicting options being specified, the rightmost option takes effect." Fix code to obey this. This makes e.g. "mount -r /usr

cvs commit: src/sys/kern vfs_mount.c

2006-03-12 Thread Jeff Roberson
jeff2006-03-13 03:06:27 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/kern vfs_mount.c Log: MFC Revs 1.218, 1.217, 1.216 VFS SMP fixes, stack api, softupdates fixes. Sponsored by: Isilon Systems, Inc. Approved by:re (scott

Re: cvs commit: src/sys/kern vfs_mount.c vfs_subr.c vfs_vnops.c src/sys/sys mount.h vnode.h src/sys/ufs/ffs ffs_extern.h ffs_softdep.c ffs_vfsops.c src/sys/ufs/ufs ufs_inode.c ufs_quota.c ufsmount.h

2006-03-10 Thread Pawel Jakub Dawidek
On Wed, Mar 08, 2006 at 11:43:39PM +, Tor Egge wrote: +> tegge 2006-03-08 23:43:39 UTC +> +> FreeBSD src repository +> +> Modified files: +> sys/kern vfs_mount.c vfs_vnops.c vfs_subr.c +> sys/sys vnode.h mount.h +> sys/ufs/ffs ffs_exte

cvs commit: src/sys/kern vfs_mount.c vfs_subr.c vfs_vnops.c src/sys/sys mount.h vnode.h src/sys/ufs/ffs ffs_extern.h ffs_softdep.c ffs_vfsops.c src/sys/ufs/ufs ufs_inode.c ufs_quota.c ufsmount.h

2006-03-08 Thread Tor Egge
tegge 2006-03-08 23:43:39 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c vfs_vnops.c vfs_subr.c sys/sys vnode.h mount.h sys/ufs/ffs ffs_extern.h ffs_softdep.c ffs_vfsops.c sys/ufs/ufs ufs_inode.c ufs_quota.c

cvs commit: src/sys/kern vfs_mount.c

2006-02-21 Thread Jeff Roberson
jeff2006-02-22 06:29:55 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: - We can not hold a vnode lock while we do a lookup. Search for and load modules prior to looking up the directory which we will cover to avoid this problem in

cvs commit: src/sys/kern vfs_mount.c

2006-02-14 Thread Robert Watson
rwatson 2006-02-14 21:57:09 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/kern vfs_mount.c Log: Merge vfs_mount.c:1.213 from HEAD to RELENG_6: Cast VFS_STATFS() in vfs_domount() to (void) to indicate that ignoring the return value

cvs commit: src/sys/kern vfs_mount.c

2006-01-30 Thread Suleiman Souhlal
ssouhlal2006-01-31 06:00:33 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/kern vfs_mount.c Log: MFC r1.215: Don't try to load KLDs if we're mounting the root. We'd otherwise panic. Tested by: kris Revision ChangesP

cvs commit: src/sys/kern vfs_mount.c

2006-01-28 Thread Suleiman Souhlal
ssouhlal2006-01-28 22:58:39 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Don't try to load KLDs if we're mounting the root. We'd otherwise panic. Tested by: kris MFC after: 3 days Revision ChangesPath 1.215 +12

cvs commit: src/sys/kern vfs_mount.c

2006-01-23 Thread Christian S.J. Peron
csjp2006-01-24 04:20:24 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/kern vfs_mount.c Log: MFC revision 1.214 date: 2006/01/15 20:14:11; author: csjp; state: Exp; lines: +1 -1 vfs_busy can only return something useful if MNTK_UNM

cvs commit: src/sys/kern vfs_mount.c

2006-01-15 Thread Christian S.J. Peron
csjp2006-01-15 20:14:11 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: vfs_busy can only return something useful if MNTK_UNMOUNT has been set. Since we are using vfs_busy() on a freshly allocated mount structure, use (void) to show that w

cvs commit: src/sys/kern vfs_mount.c

2006-01-15 Thread Robert Watson
rwatson 2006-01-15 20:01:06 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Cast VFS_STATFS() in vfs_domount() to (void) to indicate that ignoring the return value is intentional: this is simply an attempt to pre-cache the statfs state. F

cvs commit: src/sys/kern vfs_mount.c

2006-01-14 Thread Ruslan Ermilov
ru 2006-01-14 20:47:11 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: AMD64 also supports disk slices. Revision ChangesPath 1.212 +1 -1 src/sys/kern/vfs_mount.c ___ cvs-all@fre

cvs commit: src/sys/kern vfs_mount.c src/sys/ufs/ffs ffs_vfsops.c

2006-01-04 Thread Sam Leffler
sam 2006-01-04 22:18:10 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/kern vfs_mount.c sys/ufs/ffs ffs_vfsops.c Log: parse nmount options enough to use a current mount binary; this allows people to boot releng_6 kernels w

cvs commit: src/sys/kern vfs_mount.c

2005-12-19 Thread Pawel Jakub Dawidek
pjd 2005-12-20 00:43:51 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: vfs_mount_alloc() always returns 0, but what we really want is newly allocated 'struct mount *' pointer, so simplify code a bit and return the pointer directly. R

cvs commit: src/sys/kern vfs_mount.c

2005-12-19 Thread Pawel Jakub Dawidek
pjd 2005-12-19 16:27:13 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Use 'td' instead of 'curthread'. Revision ChangesPath 1.209 +1 -1 src/sys/kern/vfs_mount.c ___ cvs-all@fre

cvs commit: src/sys/kern vfs_mount.c

2005-12-07 Thread Craig Rodrigues
rodrigc 2005-12-08 04:27:53 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: In devfs_first(), set mp->mnt_opt to a valid empty list of mount options instead of leaving it NULL. This eliminates a kernel panic when trying to do a mount -o updat

cvs commit: src/sys/kern vfs_mount.c

2005-12-07 Thread Craig Rodrigues
rodrigc 2005-12-08 04:09:29 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Add "errmsg" to list of global mount options. Revision ChangesPath 1.207 +1 -0 src/sys/kern/vfs_mount.c __

Re: cvs commit: src/sys/kern vfs_mount.c

2005-12-03 Thread Ruslan Ermilov
On Sat, Dec 03, 2005 at 12:25:34PM +, Robert Watson wrote: > > On Sat, 3 Dec 2005, Ruslan Ermilov wrote: > > >On Sat, Dec 03, 2005 at 12:04:20PM +, Craig Rodrigues wrote: > >>rodrigc 2005-12-03 12:04:20 UTC > >> > >> FreeBSD src repository > >> > >> Modified files: > >>sys/kern

Re: cvs commit: src/sys/kern vfs_mount.c

2005-12-03 Thread Robert Watson
On Sat, 3 Dec 2005, Ruslan Ermilov wrote: On Sat, Dec 03, 2005 at 12:04:20PM +, Craig Rodrigues wrote: rodrigc 2005-12-03 12:04:20 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Add "rdonly" to global_opts, and parse it in vfs_donmount().

Re: cvs commit: src/sys/kern vfs_mount.c

2005-12-03 Thread Ruslan Ermilov
On Sat, Dec 03, 2005 at 12:04:20PM +, Craig Rodrigues wrote: > rodrigc 2005-12-03 12:04:20 UTC > > FreeBSD src repository > > Modified files: > sys/kern vfs_mount.c > Log: > Add "rdonly" to global_opts, and parse it in vfs_donmount(). > > Requested by: rwat

cvs commit: src/sys/kern vfs_mount.c

2005-12-03 Thread Craig Rodrigues
rodrigc 2005-12-03 12:04:20 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Add "rdonly" to global_opts, and parse it in vfs_donmount(). Requested by: rwatson Revision ChangesPath 1.206 +4 -0 src/sys/kern/vfs_mount.c __

cvs commit: src/sys/kern vfs_mount.c

2005-12-02 Thread Craig Rodrigues
rodrigc 2005-12-03 01:26:27 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: - Add "rw" mount option to global_opts. - In vfs_donmount(), parse "ro", "noro", and "rw", in order to set or unset the MNT_RDONLY filesystem flag. Revision Ch

cvs commit: src/sys/kern vfs_mount.c

2005-11-26 Thread Marcel Moolenaar
marcel 2005-11-26 19:13:41 UTC FreeBSD src repository Modified files:(Branch: RELENG_6) sys/kern vfs_mount.c Log: MFC rev 1.203: Fix bug introduced in revision 1.186: Iterate over the mounted file systems to find the largest time stamp and call initto

cvs commit: src/sys/kern vfs_mount.c

2005-11-23 Thread Craig Rodrigues
rodrigc 2005-11-23 20:51:15 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: In nmount() and vfs_donmount(), do not strcmp() the options in the iovec directly. We need to copyin() the strings in the iovec before we can strcmp() them. Also, wh

cvs commit: src/sys/kern vfs_mount.c

2005-11-19 Thread Marcel Moolenaar
marcel 2005-11-19 21:51:45 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Fix bug introduced in revision 1.186: When all file systems have a time stamp of zero, which is the case for example when the root file system is on a read-only medi

cvs commit: src/sys/kern vfs_mount.c

2005-11-19 Thread Craig Rodrigues
rodrigc 2005-11-19 21:22:21 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: Parse more mount options in vfs_donmount(), before vfs_domount() is called. It looks like there are lots of different mount flags checked in vfs_domount(), so we need

cvs commit: src/sys/kern vfs_mount.c

2005-11-17 Thread Craig Rodrigues
rodrigc 2005-11-18 01:31:10 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: In vfs_nmount(), check to see if "update" mount option was passed in, and if so, set MNT_UPDATE filesystem flag. vfs_nmount() calls vfs_domount(), and there is special

Re: cvs commit: src/sys/kern vfs_mount.c

2005-11-13 Thread Slawa Olhovchenkov
On Wed, Nov 09, 2005 at 10:01:50AM -0600, Sergey Babkin wrote: > >From: John Baldwin <[EMAIL PROTECTED]> > >On Wednesday 09 November 2005 09:30 am, Pawel Jakub Dawidek wrote: > >> On Wed, Nov 09, 2005 at 03:08:39PM +0100, Poul-Henning Kamp wrote: > >> +> In message <[EMAIL PROTECTED]>, Pawel Jakub

cvs commit: src/sys/kern vfs_mount.c

2005-11-12 Thread Craig Rodrigues
rodrigc 2005-11-12 14:41:44 UTC FreeBSD src repository Modified files: sys/kern vfs_mount.c Log: style(9) cleanups. Spotted by: njl, bde Revision ChangesPath 1.200 +17 -16src/sys/kern/vfs_mount.c ___

Re: cvs commit: src/sys/kern vfs_mount.c

2005-11-09 Thread Nate Lawson
Pawel Jakub Dawidek wrote: On Wed, Nov 09, 2005 at 12:18:47PM +0100, Poul-Henning Kamp wrote: +> In message <[EMAIL PROTECTED]>, Pawel Jakub Dawidek writes: +> +> >Of course we need to consider things like localization, etc. +> +> I'm sorry, but localization of messages of this caliber is a tot

Re: cvs commit: src/sys/kern vfs_mount.c

2005-11-09 Thread Brian Fundakowski Feldman
On Wed, Nov 09, 2005 at 02:29:33PM +0100, Poul-Henning Kamp wrote: > In message <[EMAIL PROTECTED]>, Sergey Babkin writes: > > >>+> I'm sorry, but localization of messages of this caliber is a totally > >>+> bogus concern which I intend to ignore 100%. > >> > >>Even then, this is quite annoying to

Re: cvs commit: src/sys/kern vfs_mount.c

2005-11-09 Thread Ceri Davies
On Wed, Nov 09, 2005 at 08:35:16AM -0800, Frank Mayhar wrote: > On Wed, 2005-11-09 at 08:01 +0100, Poul-Henning Kamp wrote: > > Modify perror(3), err(3) and similar to pull out the "extended" > > error, if there is one. > > As a data point, the way this problem was solved in one particular > mainf

Re: cvs commit: src/sys/kern vfs_mount.c

2005-11-09 Thread Frank Mayhar
On Wed, 2005-11-09 at 08:01 +0100, Poul-Henning Kamp wrote: > Modify perror(3), err(3) and similar to pull out the "extended" > error, if there is one. As a data point, the way this problem was solved in one particular mainframe OS many years ago was with a more complex error code. Errors looked

Re: Re: cvs commit: src/sys/kern vfs_mount.c

2005-11-09 Thread Sergey Babkin
>From: John Baldwin <[EMAIL PROTECTED]> >On Wednesday 09 November 2005 09:30 am, Pawel Jakub Dawidek wrote: >> On Wed, Nov 09, 2005 at 03:08:39PM +0100, Poul-Henning Kamp wrote: >> +> In message <[EMAIL PROTECTED]>, Pawel Jakub >> Dawidek writes: +> >> +> >> +> >In current world order you can decid

Re: cvs commit: src/sys/kern vfs_mount.c

2005-11-09 Thread John Baldwin
On Wednesday 09 November 2005 09:30 am, Pawel Jakub Dawidek wrote: > On Wed, Nov 09, 2005 at 03:08:39PM +0100, Poul-Henning Kamp wrote: > +> In message <[EMAIL PROTECTED]>, Pawel Jakub > Dawidek writes: +> > +> > +> >In current world order you can decide based on LC_ALL/LANG, etc. > +> > +> Read my

  1   2   >