Nathan Scott [Thu, 30 Sep 2004 14:52:19 +0000 (14:52 +0000)]
Keep userspace packaging in sync, portability changes; sync user/kernel source/headers; man page updates; allow e size suffix in mkfs.
Merge of xfs-cmds-melb:slinx:19613a by kenmcd.
Nathan Scott [Fri, 17 Sep 2004 06:41:01 +0000 (06:41 +0000)]
Add recursive modes to lsattr/chattr. Ensure command line command are applied to each file specified on command line, not just one.
Merge of xfs-cmds-melb:slinx:19498a by kenmcd.
Nathan Scott [Fri, 17 Sep 2004 06:32:01 +0000 (06:32 +0000)]
Move lsattr/chattr commands into separate file, we need to add some more options here soon for IRIX so these are getting enough code to warrant separate sources. No functional change.
Merge of xfs-cmds-melb:slinx:19483a by kenmcd.
Nathan Scott [Fri, 10 Sep 2004 02:23:29 +0000 (02:23 +0000)]
Updates mainly to get a clean xfs_io compile on IRIX (non-gcc), and to
add a couple more inode flags needed initially on IRIX (Linux soon).
Bump version number.
Eric Sandeen [Wed, 23 Jun 2004 05:10:16 +0000 (05:10 +0000)]
Fix check & repair of filesystems w/ realtime vols
use of isset macro was incorrectly checking rt bitmap
use our xfs_isset macro not system's isset,
which assumes a byte-sized bitfield
Russell Cattelan [Fri, 16 Apr 2004 15:56:34 +0000 (15:56 +0000)]
libxfs fix for the dir2 rebalance bug
So this was a fun one to track down.
This bug has existed since version 1.1 of the dir2 code.
xfs_dir2_leafn_rebalance splits a directory tree block into
2 balanced blocks and then calculates the new index in either the
old block or the new block relying on the hash value.
This doesn't work in the case of a new to be inserted elements hash value
being the same as an already existing elements hash value.
This resulted in a negative index being returned and then passed to
xfs_dir2_leafn_add, which it then used as a starting address in
the elements array.
The address (which is now pointing to somebody else's memory) was then
passed to memmove to move the tail of the array down 8 bytes.
Depending on the size of the array this would move all sorts of
possibly important info belong to somebody else 8 bytes down.
As part of the fix add a sanity check to xfs_dir2_leafn_add
to make nobody else is passing in a negative index.
Bill Kendall [Thu, 15 Apr 2004 19:42:58 +0000 (19:42 +0000)]
- Fix file descriptor leak in path_to_fshandle. It now caches
one descriptor per filesystem.
- In xfsrestore, always allocate a fs handle during content_init.
This allows us to not have to call path_to_fshandle before attempting
every open_by_handle.
- Change open_by_fshandle to open_by_handle is cases where we are
passing a file handle (instead of a fshandle).
path_to_fshandle was opening a file and never closing it. We now close it
unless the descriptor is to be used in the descriptor cache. One descriptor
is cached for each unique filesystem that path_to_fshandle is called on.
Glen Overby [Wed, 17 Mar 2004 21:32:49 +0000 (21:32 +0000)]
Define a new superblock field for more feature bits. Take the last
feature bit in sb_versionnum to use to indicate that the new feature
bit field is to be used.
Add new superblock fields for new feature bits.
Some of the libhandle routines were not clear whether they were working
on fshandles or file handles. This mod renames open_by_handle() to
open_by_fshandle() and updates any calling applications to now call
open_by_fshandle() instead. A new open_by_handle() has been created.
path_to_fshandle() was trying to maintain a hash of fshandles but the
hash was only storing a max of 2 fshandles at a time. This has been
fixed so the hash can hold multiple fs handles.
define open_by_fshandle()
ptools [Tue, 10 Feb 2004 03:10:49 +0000 (03:10 +0000)]
Some qa to test out simple replay of the logs by causing
file system to shutdown.
A copy of the kernel header file - modified for XFS_IOC_GOINGDOWN
related macros.
Nathan Scott [Tue, 28 Oct 2003 04:41:37 +0000 (04:41 +0000)]
Rework the mkfs allocation group sizing algorithm, making better use of the available bits. This changes the maximum allocation group size enforced by mkfs to be 1TB (from 4GB), which scales alot better for very large filesystems.
Eric Sandeen [Sun, 19 Oct 2003 02:30:37 +0000 (02:30 +0000)]
Add references to xfs_check & xfs_repair for problems
beyond the scope of normal recovery.
Add references to xfs_check & xfs_repair for problems
beyond the scope of normal recovery.