1. 30 10月, 2008 18 次提交
  2. 21 10月, 2008 1 次提交
  3. 16 10月, 2008 1 次提交
  4. 14 10月, 2008 1 次提交
  5. 17 9月, 2008 1 次提交
    • C
      [XFS] Fix regression introduced by remount fixup · 6efdf281
      Christoph Hellwig 提交于
      Logically we would return an error in xfs_fs_remount code to prevent users
      from believing they might have changed mount options using remount which
      can't be changed.
      
      But unfortunately mount(8) adds all options from mtab and fstab to the
      mount arguments in some cases so we can't blindly reject options, but have
      to check for each specified option if it actually differs from the
      currently set option and only reject it if that's the case.
      
      Until that is implemented we return success for every remount request, and
      silently ignore all options that we can't actually change.
      
      SGI-PV: 985710
      
      SGI-Modid: xfs-linux-melb:xfs-kern:31908a
      Signed-off-by: NChristoph Hellwig <hch@infradead.org>
      Signed-off-by: NTim Shimmin <tes@sgi.com>
      Signed-off-by: NLachlan McIlroy <lachlan@sgi.com>
      6efdf281
  6. 13 8月, 2008 11 次提交
  7. 28 7月, 2008 7 次提交
    • L
      [XFS] fix use after free with external logs or real-time devices · c032bfcf
      Lachlan McIlroy 提交于
      SGI-PV: 983806
      
      SGI-Modid: xfs-linux-melb:xfs-kern:31666a
      Signed-off-by: NLachlan McIlroy <lachlan@sgi.com>
      Signed-off-by: NChristoph Hellwig <hch@infradead.org>
      c032bfcf
    • C
      [XFS] fix mount option parsing in remount · 62a877e3
      Christoph Hellwig 提交于
      Remount currently happily accept any option thrown at it, although the
      only filesystem specific option it actually handles is barrier/nobarrier.
      And it actually doesn't handle these correctly either because it only uses
      the value it parsed when we're doing a ro->rw transition. In addition to
      that there's also a bad bug in xfs_parseargs which doesn't touch the
      actual option in the mount point except for a single one,
      XFS_MOUNT_SMALL_INUMS and thus forced any filesystem that's every
      remounted in some way to not support 64bit inodes with no way to recover
      unless unmounted.
      
      This patch changes xfs_fs_remount to use it's own linux/parser.h based
      options parse instead of xfs_parseargs and reject all options except for
      barrier/nobarrier and to the right thing in general. Eventually I'd like
      to have a single big option table used for mount aswell but that can wait
      for a while.
      
      SGI-PV: 983964
      
      SGI-Modid: xfs-linux-melb:xfs-kern:31382a
      Signed-off-by: NChristoph Hellwig <hch@infradead.org>
      Signed-off-by: NTim Shimmin <tes@sgi.com>
      Signed-off-by: NLachlan McIlroy <lachlan@sgi.com>
      62a877e3
    • E
      [XFS] Disable queue flag test in barrier check. · deeb5912
      Eric Sandeen 提交于
      md raid1 can pass down barriers, but does not set an ordered flag on the
      queue, so xfs does not even attempt a barrier write, and will never use
      barriers on these block devices.
      
      Remove the flag check and just let the barrier write test determine
      barrier support.
      
      A possible risk here is that if something does not set an ordered flag and
      also does not properly return an error on a barrier write... but if it's
      any consolation jbd/ext3/reiserfs never test the flag, and don't even do a
      test write, they just disable barriers the first time an actual journal
      barrier write fails.
      
      SGI-PV: 983924
      
      SGI-Modid: xfs-linux-melb:xfs-kern:31377a
      Signed-off-by: NEric Sandeen <sandeen@sandeen.net>
      Signed-off-by: NTim Shimmin <tes@sgi.com>
      Signed-off-by: NLachlan McIlroy <lachlan@sgi.com>
      deeb5912
    • C
      [XFS] streamline init/exit path · 9f8868ff
      Christoph Hellwig 提交于
      Currently the xfs module init/exit code is a mess. It's farmed out over a
      lot of function with very little error checking. This patch makes sure we
      propagate all initialization failures properly and clean up after them.
      Various runtime initializations are replaced with compile-time
      initializations where possible to make this easier. The exit path is
      similarly consolidated.
      
      There's now split out function to create/destroy the kmem zones and
      alloc/free the trace buffers. I've also changed the ktrace allocations to
      KM_MAYFAIL and handled errors resulting from that.
      
      And yes, we really should replace the XFS_*_TRACE ifdefs with a single
      XFS_TRACE..
      
      SGI-PV: 976035
      
      SGI-Modid: xfs-linux-melb:xfs-kern:31354a
      Signed-off-by: NChristoph Hellwig <hch@infradead.org>
      Signed-off-by: NNiv Sardi <xaiki@sgi.com>
      Signed-off-by: NLachlan McIlroy <lachlan@sgi.com>
      9f8868ff
    • L
      [XFS] Use the generic xattr methods. · 0ec58516
      Lachlan McIlroy 提交于
      Use the generic set, get and removexattr methods and supply the s_xattr
      array with fine-grained handlers. All XFS/Linux highlevel attr handling is
      rewritten from scratch and placed into fs/xfs/linux-2.6/xfs_xattr.c so
      that it's separated from the generic low-level code.
      
      SGI-PV: 982343
      
      SGI-Modid: xfs-linux-melb:xfs-kern:31234a
      Signed-off-by: NChristoph Hellwig <hch@infradead.org>
      Signed-off-by: NTim Shimmin <tes@sgi.com>
      Signed-off-by: NLachlan McIlroy <lachlan@sgi.com>
      0ec58516
    • B
      [XFS] XFS: ASCII case-insensitive support · 189f4bf2
      Barry Naujok 提交于
      Implement ASCII case-insensitive support. It's primary purpose is for
      supporting existing filesystems that already use this case-insensitive
      mode migrated from IRIX. But, if you only need ASCII-only case-insensitive
      support (ie. English only) and will never use another language, then this
      mode is perfectly adequate.
      
      ASCII-CI is implemented by generating hashes based on lower-case letters
      and doing lower-case compares. It implements a new xfs_nameops vector for
      doing the hashes and comparisons for all filename operations.
      
      To create a filesystem with this CI mode, use: # mkfs.xfs -n version=ci
      <device>
      
      SGI-PV: 981516
      SGI-Modid: xfs-linux-melb:xfs-kern:31209a
      Signed-off-by: NBarry Naujok <bnaujok@sgi.com>
      Signed-off-by: NChristoph Hellwig <hch@infradead.org>
      189f4bf2
    • C
      [XFS] add missing call to xfs_filestream_unmount on xfs_mountfs failure · 120226c1
      Christoph Hellwig 提交于
      SGI-PV: 981951
      SGI-Modid: xfs-linux-melb:xfs-kern:31199a
      Signed-off-by: NChristoph Hellwig <hch@infradead.org>
      Signed-off-by: NDavid Chinner <dgc@sgi.com>
      Signed-off-by: NLachlan McIlroy <lachlan@sgi.com>
      120226c1