1. 06 1月, 2011 1 次提交
    • M
      ext3: don't update sb journal_devnum when RO dev · 31d710a7
      Maciej Żenczykowski 提交于
      An ext3 filesystem on a read-only device, with an external journal
      which is at a different device number then recorded in the superblock
      will fail to honor the read-only setting of the device and trigger
      a superblock update (write).
      
      For example:
        - ext3 on a software raid which is in read-only mode
        - external journal on a read-write device which has changed device num
        - attempt to mount with -o journal_dev=<new_number>
        - hits BUG_ON(mddev->ro = 1) in md.c
      
      Cc: Theodore Ts'o <tytso@mit.edu>
      Signed-off-by: NMaciej Żenczykowski <zenczykowski@gmail.com>
      Signed-off-by: NJan Kara <jack@suse.cz>
      31d710a7
  2. 18 11月, 2010 1 次提交
  3. 29 10月, 2010 1 次提交
  4. 28 10月, 2010 5 次提交
  5. 05 10月, 2010 3 次提交
    • J
      BKL: Remove BKL from ext3_put_super() and ext3_remount() · 77b54a46
      Jan Blunck 提交于
      The BKL lock is protecting the remounting against a potential call to
      ext3_put_super(). This could not happen, since this is protected by the
      s_umount rw semaphore of struct super_block.
      
      Therefore I think the BKL is protecting nothing here.
      Signed-off-by: NJan Blunck <jblunck@infradead.org>
      Acked-by: NJan Kara <jack@suse.cz>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      77b54a46
    • J
      BKL: Remove BKL from ext3 fill_super() · d646cf82
      Jan Blunck 提交于
      The BKL is protecting nothing than two memory allocations here.
      Signed-off-by: NJan Blunck <jblunck@infradead.org>
      Acked-by: NJan Kara <jack@suse.cz>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      d646cf82
    • J
      BKL: Explicitly add BKL around get_sb/fill_super · db719222
      Jan Blunck 提交于
      This patch is a preparation necessary to remove the BKL from do_new_mount().
      It explicitly adds calls to lock_kernel()/unlock_kernel() around
      get_sb/fill_super operations for filesystems that still uses the BKL.
      
      I've read through all the code formerly covered by the BKL inside
      do_kern_mount() and have satisfied myself that it doesn't need the BKL
      any more.
      
      do_kern_mount() is already called without the BKL when mounting the rootfs
      and in nfsctl. do_kern_mount() calls vfs_kern_mount(), which is called
      from various places without BKL: simple_pin_fs(), nfs_do_clone_mount()
      through nfs_follow_mountpoint(), afs_mntpt_do_automount() through
      afs_mntpt_follow_link(). Both later functions are actually the filesystems
      follow_link inode operation. vfs_kern_mount() is calling the specified
      get_sb function and lets the filesystem do its job by calling the given
      fill_super function.
      
      Therefore I think it is safe to push down the BKL from the VFS to the
      low-level filesystems get_sb/fill_super operation.
      
      [arnd: do not add the BKL to those file systems that already
             don't use it elsewhere]
      Signed-off-by: NJan Blunck <jblunck@infradead.org>
      Signed-off-by: NArnd Bergmann <arnd@arndb.de>
      Cc: Matthew Wilcox <matthew@wil.cx>
      Cc: Christoph Hellwig <hch@infradead.org>
      db719222
  6. 10 9月, 2010 1 次提交
  7. 10 8月, 2010 1 次提交
  8. 21 7月, 2010 1 次提交
  9. 24 5月, 2010 5 次提交
  10. 22 5月, 2010 2 次提交
  11. 05 3月, 2010 9 次提交
  12. 05 2月, 2010 1 次提交
  13. 23 12月, 2009 4 次提交
  14. 10 12月, 2009 4 次提交
    • J
      ext3: Support for vfsv1 quota format · 1aeec434
      Jan Kara 提交于
      We just have to add proper mount options handling. The rest is handled by
      the generic quota code.
      
      CC: linux-ext4@vger.kernel.org
      Signed-off-by: NJan Kara <jack@suse.cz>
      1aeec434
    • A
      ext3: Unify log messages in ext3 · 4cf46b67
      Alexey Fisher 提交于
      Make messages produced by ext3 more unified. It should be
      easy to parse.
      
      dmesg before patch:
      [ 4893.684892] reservations ON
      [ 4893.684896] xip option not supported
      [ 4893.684964] EXT3-fs warning: maximal mount count reached, running
      e2fsck is recommended
      
      dmesg after patch:
      [  873.300792] EXT3-fs (loop0): using internal journaln
      [  873.300796] EXT3-fs (loop0): mounted filesystem with writeback data mode
      [  924.163657] EXT3-fs (loop0): error: can't find ext3 filesystem on dev loop0.
      [  723.755642] EXT3-fs (loop0): error: bad blocksize 8192
      [  357.874687] EXT3-fs (loop0): error: no journal found. mounting ext3 over ext2?
      [  873.300764] EXT3-fs (loop0): warning: maximal mount count reached, running e2fsck is recommended
      [  924.163657] EXT3-fs (loop0): error: can't find ext3 filesystem on dev loop0.
      Signed-off-by: NAlexey Fisher <bug-track@fisher-privat.net>
      Signed-off-by: NJan Kara <jack@suse.cz>
      4cf46b67
    • E
      ext3: make "norecovery" an alias for "noload" · dee1d3b6
      Eric Sandeen 提交于
      Users on the list recently complained about differences across
      filesystems w.r.t. how to mount without a journal replay.
      
      In the discussion it was noted that xfs's "norecovery" option is
      perhaps more descriptively accurate than "noload," so let's make
      that an alias for ext3.
      
      Also show this status in /proc/mounts
      Signed-off-by: NEric Sandeen <sandeen@redhat.com>
      Signed-off-by: NJan Kara <jack@suse.cz>
      dee1d3b6
    • E
      ext3: Don't update the superblock in ext3_statfs() · b9183975
      Eric Sandeen 提交于
      commit a71ce8c6 updated ext3_statfs()
      to update the on-disk superblock counters, but modified this buffer
      directly without any journaling of the change.  This is one of the
      accesses that was causing the crc errors in journal replay as seen in
      kernel.org bugzilla #14354.
      
      The modifications were originally to keep the sb "more" in sync,
      so that a readonly fsck of the device didn't flag this as an
      error (as often), but apparently e2fsprogs deals with this differently
      now, anyway.
      
      Based on Ted's patch for ext4, which was in turn based on my
      work on that bug and another preliminary patch...
      Signed-off-by: NEric Sandeen <sandeen@redhat.com>
      Signed-off-by: NJan Kara <jack@suse.cz>
      b9183975
  15. 11 11月, 2009 1 次提交