freebsd-skq/sys
rodrigc a533f9bcf6 When performing a mount update to change a mount from read-only to read-write,
do not call markvoldirty() until the mount has been flagged as read-write.
Due to the nature of the msdosfs code, this bug only seemed to appear for
FAT-16 and FAT-32.

This fixes the testcase:
#!/bin/sh
dd if=/dev/zero bs=1m count=1 oseek=119 of=image.msdos
mdconfig -a -t vnode -f image.msdos
newfs_msdos -F 16 /dev/md0 fd120m
mount_msdosfs -o ro /dev/md0 /mnt
mount | grep md0
mount -u -o rw /dev/md0; echo $?
mount | grep md0
umount /mnt
mdconfig -d -u 0

PR:		105412
Tested by:	Eugene Grosbein <eugen grosbein pp ru>
2007-01-06 20:46:02 +00:00
..
amd64 MFi386 rev 1.56: 2007-01-06 15:58:34 +00:00
arm Hints are handled differently on -current 2007-01-05 10:30:51 +00:00
boot MFp4: differences for bwct ethernet attachment 2006-12-20 18:26:37 +00:00
bsm Merge OpenBSM 1.0 alpha 12 import changes into src/sys/bsm. New events 2006-09-25 12:22:07 +00:00
cam fix botch 2006-12-21 23:20:51 +00:00
coda change vop_lock handling to allowing tracking of callers' file and line for 2006-11-13 05:51:22 +00:00
compat Fix amd64 build. 2007-01-01 14:47:45 +00:00
conf MFp4: add BWCT kernel configuration 2007-01-05 02:08:35 +00:00
contrib Clean up pfr_kentry_pl2 as well. This fixes a kernel panic in the vm.zone 2007-01-01 16:51:11 +00:00
crypto Initialize T1 to silent gcc warning. 2006-10-22 02:19:33 +00:00
ddb Threading cleanup.. part 2 of several. 2006-12-06 06:34:57 +00:00
dev Fixes module build with DEB(x) defined to x. 2007-01-06 19:11:48 +00:00
fs When performing a mount update to change a mount from read-only to read-write, 2007-01-06 20:46:02 +00:00
gdb
geom Softc may be NULL in g_journal_orphan(), so don't be surprised. 2006-12-02 09:10:29 +00:00
gnu Previously, the mount_ext2fs binary listed the acceptable mount 2006-11-18 18:22:11 +00:00
i4b Fix fat-fingering in previous commit. 2006-12-29 16:38:22 +00:00
i386 regen after addition of linux_utimes and linux_rt_sigtimedwait 2006-12-31 13:20:31 +00:00
ia64 Add a lwpid field into per-cpu structure, the lwpid represents current 2006-12-20 04:40:39 +00:00
isa Be consistent with the spelling of "dependent" in user-visible places. 2006-12-30 11:55:47 +00:00
isofs/cd9660 The ISO9660 spec does allow files up to 4G. Change the i_size 2006-12-08 07:43:53 +00:00
kern - Don't let SCHED_TICK_TOTAL() return less than hz. This can cause integer 2007-01-06 12:33:43 +00:00
libkern Add strstr() function to the libkern. 2006-08-12 15:28:39 +00:00
modules Extend the emu10kx driver. With the words of the author: 2007-01-06 18:59:35 +00:00
net style(9) nit. Prefer struct[space]name[space]{ to make grep searches more 2007-01-01 21:49:39 +00:00
net80211 Fix compile error. 2007-01-06 05:38:18 +00:00
netatalk Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
netatm Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
netgraph Various bpf(4) related fixes to catch places up to the new bpf(4) 2006-12-29 13:59:50 +00:00
netinet o One more typo in the comment. 2007-01-06 13:12:24 +00:00
netinet6 a) macro-ization of all mbuf and random number 2006-12-29 20:21:42 +00:00
netipsec s,#if INET6,#ifdef INET6, 2006-12-14 17:33:46 +00:00
netipx Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
netkey With exception of the if_name() macro, all definitions in net_osdep.h 2006-08-04 21:27:40 +00:00
netnatm Change semantics of socket close and detach. Add a new protocol switch 2006-07-21 17:11:15 +00:00
netncp Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
netsmb Sweep kernel replacing suser(9) calls with priv(9) calls, assigning 2006-11-06 13:42:10 +00:00
nfs NFSv4 client: 2006-11-28 19:33:28 +00:00
nfs4client NFSv4 client: 2006-11-28 19:33:28 +00:00
nfsclient NetApp filers return corrupt post op attrs in the wcc on NFS error responses. 2006-12-11 19:54:25 +00:00
nfsserver The nfsm_srvpathsiz() macro in nfsrv_symlink() in nfs_serv.c should 2007-01-02 20:42:08 +00:00
opencrypto
pc98 Allow machdep.cpu_idle_hlt to be set from the loader. This should allow 2006-12-06 18:27:17 +00:00
pccard
pci Restore agp aperture size after resume, in case it is modified after boot. 2007-01-06 08:31:31 +00:00
powerpc In cpu_reset(), call OF_reboot() instead of OF_exit(). The latter 2006-12-28 23:56:50 +00:00
rpc
security Teach the stub policy about some of the more recent entry points that have 2007-01-01 01:47:18 +00:00
sparc64 add new large page sizes for use by shared loader 2006-12-18 07:28:59 +00:00
sun4v Invert the logic inside of two KASSERTS which resulted in two kernel panics 2006-12-31 02:50:07 +00:00
sys - Close a race between enumerating UNIX domain socket pcb structures via 2007-01-05 19:59:46 +00:00
tools Check for errors when registering and unregistering firmware modules. This 2006-06-16 21:06:03 +00:00
ufs change vop_lock handling to allowing tracking of callers' file and line for 2006-11-13 05:51:22 +00:00
vm - Add a new function uma_zone_exhausted() to see if a zone is full. 2007-01-05 19:09:01 +00:00
Makefile o Add cam to a list of cscope dirs. 2006-11-26 18:27:16 +00:00