Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Jan 2007 20:46:02 +0000 (UTC)
From:      Craig Rodrigues <rodrigc@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/fs/msdosfs msdosfs_vfsops.c
Message-ID:  <200701062046.l06Kk26r061816@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
rodrigc     2007-01-06 20:46:02 UTC

  FreeBSD src repository

  Modified files:
    sys/fs/msdosfs       msdosfs_vfsops.c 
  Log:
  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>
  
  Revision  Changes    Path
  1.156     +10 -4     src/sys/fs/msdosfs/msdosfs_vfsops.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200701062046.l06Kk26r061816>