]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/log
thirdparty/xfsprogs-dev.git
15 years agoxfsprogs: add missing periods in CHANGES
Christoph Hellwig [Fri, 30 Jan 2009 17:54:13 +0000 (18:54 +0100)] 
xfsprogs: add missing periods in CHANGES

All the older entries terminate each item with a period, so do it for
the 3.0.0 items, too.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Felix Blyakher <felixb@sgi.com>
15 years agoxfs_db: exit on invalid magic number
Christoph Hellwig [Fri, 30 Jan 2009 17:52:29 +0000 (18:52 +0100)] 
xfs_db: exit on invalid magic number

Fail gracefully and with a useful error message when we detect an
invalid superblock magic in xfs_db.  Add a new -F flag to continue
when seeing the invalid magic number - that way xfs_check and
xfs_metadump can be used on a filesystem that has a corrupted primary
superblock.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Felix Blyakher <felixb@sgi.com>
15 years agogettext: make build system look more like automake gettext
Arkadiusz Miśkiewicz [Thu, 29 Jan 2009 22:24:45 +0000 (23:24 +0100)] 
gettext: make build system look more like automake gettext

configure.in: Find all *.c files using find so no need to update
po/Makefile manually (previous method leads to problems like when
someone adds new .c file and forgets to update Makefile - then
translations are removed after update).

po/Makefile: Use automaticly found .c files. Add update-po target.
Show translation statistics when processing po files. Turn on msgfmt
validation (-c).

How to update translations now?

 $ ./configure
 $ cd po; make update-po
 $ vim your.po
 $ make

Signed-off-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
Reviewed-by: Christoph Hellwig <hch@lst.de>
15 years agolibxcmd: move error messages to appropriate place
Arkadiusz Miśkiewicz [Thu, 29 Jan 2009 22:08:23 +0000 (23:08 +0100)] 
libxcmd: move error messages to appropriate place

Replace raw perror() with proper message in
fs_table_initialise_mounts().

Replace raw perror() with proper message and move it from
fs_mount_point_from_path() to fs_table_initialise_projects() where this
message has meaning.

Signed-off-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
Reviewed-by: Nathan Scott <nscott@aconex.com>
Reviewed-by: Donald Douwsma <ddouwsma@bigpond.net.au>
15 years agoxfs_quota.8: document -d <depth> and -p <path> project quota options
Arkadiusz Miśkiewicz [Thu, 29 Jan 2009 21:59:25 +0000 (22:59 +0100)] 
xfs_quota.8: document -d <depth> and -p <path> project quota options

Signed-off-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
Reviewed-by: Christoph Hellwig <hch@lst.de>
15 years agoxfs_quota: add support for passing project paths on cmdline
Arkadiusz Miśkiewicz [Thu, 29 Jan 2009 21:57:34 +0000 (22:57 +0100)] 
xfs_quota: add support for passing project paths on cmdline

/etc/project is currently required for using project quota. This
patch adds ability to specify paths at command line.

fs_table_insert_project_path() introduced in libxcmd. Allows to insert
arbitrary path to fs_* iterating engine. We insert our paths with
-1 as project id (because we know no "original" id for this path
and generally this knowledge is not needed).

New option introduced for paths passing - project -p <path>.

Example:
$ sudo rm -f /etc/projects /etc/projid

$ sudo ./xfs_quota -x -c "project -p /tmp/xx -s 60"
Setting up project 60 (path /tmp/xx)...
Processed 1 (/etc/projects and cmdline) paths for project 60 with
recursion depth infinite (-1).

$ sudo ./xfs_quota -x -c "project -p /tmp/xx -c 60"
Checking project 60 (path /tmp/xx)...
Processed 1 (/etc/projects and cmdline) paths for project 60 with
recursion depth infinite (-1).

$ sudo ./xfs_quota -x -c "project -p /tmp/xx -c 70"
Checking project 70 (path /tmp/xx)...
/tmp/xx - project identifier is not set (inode=60, tree=70)
/tmp/xx/file1 - project identifier is not set (inode=60, tree=70)
/tmp/xx/file2 - project identifier is not set (inode=60, tree=70)
/tmp/xx/file3 - project identifier is not set (inode=60, tree=70)
/tmp/xx/dir1 - project identifier is not set (inode=60, tree=70)
/tmp/xx/dir2 - project identifier is not set (inode=60, tree=70)
Processed 1 (/etc/projects and cmdline) paths for project 70 with
recursion depth infinite (-1).

$ sudo ./xfs_quota -x -c "project -p /tmp/xx -s 70"
Setting up project 70 (path /tmp/xx)...
Processed 1 (/etc/projects and cmdline) paths for project 70 with
recursion depth infinite (-1).

$ sudo ./xfs_quota -x -c "project -p /tmp/xx -c 70"
Checking project 70 (path /tmp/xx)...
Processed 1 (/etc/projects and cmdline) paths for project 70 with
recursion depth infinite (-1).

Signed-off-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
Reviewed-by: Donald Douwsma <ddouwsma@bigpond.net.au>
Reviewed-by: Christoph Hellwig <hch@lst.de>
15 years agoxfs_quota: add -d option to limit directory depth
Arkadiusz Miśkiewicz [Thu, 29 Jan 2009 21:51:45 +0000 (22:51 +0100)] 
xfs_quota: add -d option to limit directory depth

xfs_quota project directory depth processing can now be limited
to certain depth. For example: xfs_quota -x -c "project -d 2 -s 10"
limits recursion to level 2.

Signed-off-by: Arkadiusz Miśkiewicz <arekm@maven.pl>
Reviewed-by: Donald Douwsma <ddouwsma@bigpond.net.au>
Reviewed-by: Christoph Hellwig <hch@lst.de>
15 years agoMerge branch 'master' of ssh://master.kernel.org/pub/scm/fs/xfs/xfsprogs-dev
Nathan Scott [Wed, 28 Jan 2009 11:09:08 +0000 (22:09 +1100)] 
Merge branch 'master' of ssh://master.kernel.org/pub/scm/fs/xfs/xfsprogs-dev

15 years agoUpdate debian suggested-packages line.
Nathan Scott [Wed, 28 Jan 2009 11:07:32 +0000 (22:07 +1100)] 
Update debian suggested-packages line.

15 years agoUpdate debian packaging for xfsprogs-3.0 release.
Nathan Scott [Wed, 28 Jan 2009 10:44:14 +0000 (21:44 +1100)] 
Update debian packaging for xfsprogs-3.0 release.

Also cleanup a few things - watch file unnecessary and gives us
more lintian warnings, ditched.  Update uploaders to list those
who do the uploading.

Signed-off-by: Nathan Scott <nathans@debian.org>
15 years agorpm spec file update
Nathan Scott [Wed, 28 Jan 2009 08:47:03 +0000 (09:47 +0100)] 
rpm spec file update

Since binaries have moved between xfsprogs and xfsdump packages
in version 3.0.0, we need to fix the dependencies in the rpm
specfiles, else rpm will complain.

While in there, remove xfs-cmds Provides/Obsoletes lines, there
is no way anyone is ever going to be requiring those anymore (no
real-world upgrade path having such old skool SGI-released rpms).

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
15 years agorpm spec file update
Nathan Scott [Wed, 28 Jan 2009 08:47:03 +0000 (09:47 +0100)] 
rpm spec file update

Since binaries have moved between xfsprogs and xfsdump packages
in version 3.0.0, we need to fix the dependencies in the rpm
specfiles, else rpm will complain.

While in there, remove xfs-cmds Provides/Obsoletes lines, there
is no way anyone is ever going to be requiring those anymore (no
real-world upgrade path having such old skool SGI-released rpms).

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
15 years agomkfs: man page typo fix
Kazuya Mio [Wed, 28 Jan 2009 08:45:07 +0000 (09:45 +0100)] 
mkfs: man page typo fix

Based on a patch by Nathan Scott <nscott@aconex.com>.

Signed-off-by: Kazuya Mio <k-mio@sx.jp.nec.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
15 years agopolish translation update
Jakub Bogusz [Wed, 28 Jan 2009 08:36:13 +0000 (09:36 +0100)] 
polish translation update

15 years agoonly symlink development libraries when needed
Mike Frysinger [Sun, 25 Jan 2009 05:09:44 +0000 (06:09 +0100)] 
only symlink development libraries when needed

We dont want to generate symlinks when the libdir is the same as the
devlibdir, otherwise we clobber the real files with broken symlinks.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Acked-by: Nathan Scott <nscott@aconex.com>
15 years agoxfs_io: fix comment in bmap.c
Christoph Hellwig [Sun, 25 Jan 2009 04:57:24 +0000 (05:57 +0100)] 
xfs_io: fix comment in bmap.c

Based on a patch from Tomasz Majkowski <moosh009@gmail.com> in bugzilla #785.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Felix Blyakher <felixb@sgi.com>
15 years agoupdate CHANGES
Christoph Hellwig [Sat, 24 Jan 2009 14:01:24 +0000 (15:01 +0100)] 
update CHANGES

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Nathan Scott <nscott@aconex.com>
15 years agoadd xfs_estimate manpage
Christoph Hellwig [Sat, 24 Jan 2009 14:00:14 +0000 (15:00 +0100)] 
add xfs_estimate manpage

xfs_estimate has been moved to xfsprogs a while ago, so the manpage should
follow it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Nathan Scott <nscott@aconex.com>
15 years agomove fsr over from xfsdump
Christoph Hellwig [Sat, 24 Jan 2009 13:59:31 +0000 (14:59 +0100)] 
move fsr over from xfsdump

There's really no reason to hide fsr in xfsdump, so move it over
to xfsprogs now that we have a 3.0 release with some major shaking
pending.  The only code change is to replace the single attr_setf call
with a fsetxattr to avoid a dependency on libattr.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Nathan Scott <nscott@aconex.com>
15 years agoxfs_repair: allow filesystems with a single allocation group
Christoph Hellwig [Sun, 18 Jan 2009 21:13:43 +0000 (22:13 +0100)] 
xfs_repair: allow filesystems with a single allocation group

Currently xfs_repair bails out on a filesystem with just a single AG.
But that's a perfectly valid configureation, so we should allow it.

Because we could cause harm only allow it when using the force_geometry
suboption.  But we nice enough to tell the user about it when he needs it.

Also make sure to take the internal log into account when guestimating the
first inode cluster offset.

I'll also cook up a testcase for repair on single AG filesystems.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reported-By: Arkadiusz Miskiewicz <arekm@maven.pl>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
15 years agolibdisk: recognize btrfs disk format
Eric Sandeen [Thu, 8 Jan 2009 21:25:27 +0000 (15:25 -0600)] 
libdisk: recognize btrfs disk format

Now that the btrfs disk format has stabilized, libdisk can
recognize it and mkfs.xfs will not overwrite it w/o "-f" :

# mkfs.btrfs -l 16384 -L mylabel -n 8192 -s 4096 /tmp/fsfile
fs created label mylabel on /tmp/fsfile
        nodesize 8192 leafsize 16384 sectorsize 4096 size 1.28GB
Btrfs v0.16-37-gb8271dc
# mkfs.xfs /tmp/fsfile
mkfs.xfs: /tmp/fsfile appears to contain an existing filesystem (btrfs).
mkfs.xfs: Use the -f option to force overwrite.

This'll fix up xfsqa failures when mkfs.btrfs is found, too.

Reviewed-by: Christoph Hellwig <hch@infradead.org>
15 years agofix include/ symlink creation (again)
Eric Sandeen [Thu, 8 Jan 2009 20:05:21 +0000 (14:05 -0600)] 
fix include/ symlink creation (again)

We need the "default" target first, otherwise a simple "make -C include"
only ran the xfs target, missing disk, and failures ensued.

Reviewed-by: Christoph Hellwig <hch@infradead.org>
15 years agoVarious fixes to allow xfsdump/xfsrestore to work with 64K
Mark Goodwin [Thu, 8 Jan 2009 01:37:11 +0000 (12:37 +1100)] 
Various fixes to allow xfsdump/xfsrestore to work with 64K
page size. This is essentially Chinner's patch from a while
back.

Signed-off-by: Bill Kendall <wkendall@sgi.com>
Signed-off-by: Lachlan McIlroy <lachlan@sgi.com>
Signed-off-by: Mark Goodwin <markgw@sgi.com>
15 years agoxfs_quota: fix input of a projectid which starts whith a digit
Leo Baltus [Fri, 2 Jan 2009 18:23:58 +0000 (19:23 +0100)] 
xfs_quota: fix input of a projectid which starts whith a digit

xfs_quota -x -c "project -s 123foo" would result in a lookup for directories
belonging to project 123

Reviewed-by: Christoph Hellwig <hch@lst.de>
15 years agoxfs_check: fix exit codes
Michael Sinz [Tue, 30 Dec 2008 17:32:51 +0000 (18:32 +0100)] 
xfs_check: fix exit codes

xfs_check returns success when the superblock magic is invalid - this makes it
return the serious error exit code (3) for this case, and the invalid arguments
exit code (1) if the arguments to xfs_check were wrong.

A glance at the code suggests that other xfs_check failures appear to return
the correct error codes.

Reviewed-by: Christoph Hellwig <hch@lst.de>
Cc: Michael Sinz <michael.sinz@sinz.org>
15 years agoxfs_quota: fix EXCLUDED_FILE_TYPES macro for negation case
Arkadiusz Miskiewicz [Tue, 30 Dec 2008 17:32:08 +0000 (18:32 +0100)] 
xfs_quota: fix EXCLUDED_FILE_TYPES macro for negation case

Fix EXCLUDED_FILE_TYPES in case when someone will
try to do if (!EXCLUDED_FILE_TYPES()).

Reviewed-by: Christoph Hellwig <hch@lst.de>
15 years agoxfs_quota: Don't ignore every error when asking for quota
Arkadiusz Miskiewicz [Tue, 30 Dec 2008 17:32:05 +0000 (18:32 +0100)] 
xfs_quota: Don't ignore every error when asking for quota

Errors from quotactl() were silently ignored like:

$ xfs_quota -x -c "report -u -L 12000 -U 12001"
$

Print error messages for conditions other than ENOENT and ENOSYS
(these two aren't actually errors for the way quotactl is used).

We now get:

$ ./xfs_quota -x -c "report -u -L 12000 -U 12001"  /home
XFS_GETQUOTA: Operation not permitted
XFS_GETQUOTA: Operation not permitted
$

which is consistent with error reporting in rest of quotactl using code.

Reviewed-by: Christoph Hellwig <hch@lst.de>
15 years agoxfs_quota: warn if specified non-zero quota will be round down to zero
Arkadiusz Miskiewicz [Tue, 30 Dec 2008 17:32:01 +0000 (18:32 +0100)] 
xfs_quota: warn if specified non-zero quota will be round down to zero

User specified quota limit is internally converted to "basic blocks"
unit (512 bytes in size). Quota value will be silently converted
to zero when user enters any value lower than 512 bytes.

Warn in such case:

: # ./xfs_quota -x -c "limit -u bsoft=431 12000" /home
: xfs_quota: Warning: `431' in quota blocks is 0 (unlimited).

Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
15 years agoxfs_quota: Fix range for -U.
Arkadiusz Miskiewicz [Tue, 30 Dec 2008 17:31:56 +0000 (18:31 +0100)] 
xfs_quota: Fix range for -U.

xfs_quota report "-L" option specifies lower range of requested IDs.
"-U" specifies upper range but "-L" is closed range while "-U" is open
range.

Make "-U" closed range, too which is something more expected.

Reviewed-by: Christoph Hellwig <hch@lst.de>
15 years agoxfs_quota: Add missing options to --help
Arkadiusz Miskiewicz [Tue, 30 Dec 2008 17:31:45 +0000 (18:31 +0100)] 
xfs_quota: Add missing options to --help

Reviewed-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
15 years agoxfs_quota: return proper error status
Arkadiusz Miskiewicz [Tue, 30 Dec 2008 17:29:34 +0000 (18:29 +0100)] 
xfs_quota: return proper error status

xfs_quota doesn't report success/failure in exit status
which prevents it from being used in automated scripts easily.

Add proper exit codes.

Reviewed-by: Christoph Hellwig <hch@lst.de>
15 years agobuild system: Make --enable-gettext actually enable gettext
Arkadiusz Miskiewicz [Tue, 30 Dec 2008 17:24:11 +0000 (18:24 +0100)] 
build system: Make --enable-gettext actually enable gettext

ENABLE_GETTEXT wasn't defined when --enable-gettext was
passed as configure option. Now this is fixed.

Reviewed-by: Christoph Hellwig <hch@lst.de>
15 years agoPolish translation update
Jakub Bogusz [Tue, 30 Dec 2008 17:23:29 +0000 (18:23 +0100)] 
Polish translation update

15 years agoApply gettext translation to strings kept in format->{fmt, msg, type}
Jakub Bogusz [Tue, 30 Dec 2008 17:22:51 +0000 (18:22 +0100)] 
Apply gettext translation to strings kept in format->{fmt, msg, type}

Reviewed-by: Christoph Hellwig <hch@lst.de>
15 years agoFix build when gettext is enabled
Jakub Bogusz [Tue, 30 Dec 2008 17:22:46 +0000 (18:22 +0100)] 
Fix build when gettext is enabled

Build fails when gettext is enabled:

progress.c:16: error: initializer element is not constant
progress.c:16: error: (near initialization for ‘rpt_types[0]’)
progress.c:18: error: initializer element is not constant
progress.c:18: error: (near initialization for ‘rpt_types[1]’)
[...]

Fix that using commonly standard N_() macro.

Improvements by Arkadiusz Miśkiewicz <arekm@maven.pl>
Reviewed-by: Christoph Hellwig <hch@lst.de>
15 years agoupdate Debian packaging
Nathan Scott [Tue, 30 Dec 2008 17:20:39 +0000 (18:20 +0100)] 
update Debian packaging

15 years agofix parallel installs in include/ dirs
Eric Sandeen [Tue, 30 Dec 2008 17:19:47 +0000 (18:19 +0100)] 
fix parallel installs in include/ dirs

This is for http://oss.sgi.com/bugzilla/show_bug.cgi?id=759
"fix parallel issue with include/ symlinks"

Doing something like "make -j2 install install-dev" would lead
to a race of removing & creating symlinks in include/

Thanks to Mike for reporting & suggesting the fix.

Reported-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
15 years agofix up xfs-cmds build after the parallel-fest
Eric Sandeen [Tue, 30 Dec 2008 17:17:06 +0000 (18:17 +0100)] 
fix up xfs-cmds build after the parallel-fest

My big parallel build patch lost the "make configure" target.
This broke Makepkgs...

Now, IMHO, running configure from make is a little bass-ackwards;
I'd probably prefer to have Makepkgs explicitly run:

 autoconf; configure --myoptions; make

but for now, this adds back in a workable "make configure" target.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Reviewed-by: Christoph Hellwig <hch@lst.de>
15 years agoFix unaligned accesses in IA64 when getting disk extents
Barry Naujok [Mon, 8 Dec 2008 02:42:35 +0000 (02:42 +0000)] 
Fix unaligned accesses in IA64 when getting disk extents
Merge of master-melb:xfs-cmds:32642a by kenmcd.

  Fix unaligned accesses when getting disk extents on IA64

15 years agoLinux kernels (at least up until 2.6.27) are lacking compat sys_ustat
Barry Naujok [Tue, 2 Dec 2008 03:03:12 +0000 (03:03 +0000)] 
Linux kernels (at least up until 2.6.27) are lacking compat sys_ustat
handlers on some platforms (notably PPC) so that if called from 32 bits
on a 64-bit kernel, the kernel will copy out too much (32 bytes onto a
20-byte structure):

[root@xero xfstests]# xfs_logprint /dev/loop0
xfs_logprint:
*** stack smashing detected ***: xfs_logprint terminated
Aborted

This will be fixed upstream, but for the benefit of older kernels we
may want to guard against this by padding the structure we pass into
the syscall.   We don't care about the values anyway, just the return
value.

Signed-off-by: Eric Sandeen <sandeen@sandeen.net>
Merge of master-melb:xfs-cmds:32618a by kenmcd.

  Pad ustat struct to avoid stack corruption

15 years agokill unused files db/dbread.[ch]
Barry Naujok [Tue, 2 Dec 2008 03:02:47 +0000 (03:02 +0000)] 
kill unused files db/dbread.[ch]
Merge of master-melb:xfs-cmds:32617a by kenmcd.

  kill unused files db/dbread.[ch]

15 years agoFix 64k blocksize handling in xfs_repair
Barry Naujok [Tue, 2 Dec 2008 03:02:22 +0000 (03:02 +0000)] 
Fix 64k blocksize handling in xfs_repair
Merge of master-melb:xfs-cmds:32616a by kenmcd.

  Fix 64k blocksize handling in xfs_repair

15 years agoAllow parallel builds of xfs-cmds.
Barry Naujok [Fri, 21 Nov 2008 02:43:35 +0000 (02:43 +0000)] 
Allow parallel builds of xfs-cmds.
Merge of master-melb:xfs-cmds:32514a by kenmcd.

  Allow parallel builds of xfs-cmds

15 years agoRecognize gfs & gfs2 disk formats in libdisk
Barry Naujok [Thu, 20 Nov 2008 14:22:25 +0000 (14:22 +0000)] 
Recognize gfs & gfs2 disk formats in libdisk
Merge of master-melb:xfs-cmds:32505a by kenmcd.

  Recognize gfs & gfs2 disk formats.

15 years agoFix libxfs_iput on a non-existent root inode during libxfs init
Barry Naujok [Thu, 20 Nov 2008 14:22:02 +0000 (14:22 +0000)] 
Fix libxfs_iput on a non-existent root inode during libxfs init
Merge of master-melb:xfs-cmds:32504a by kenmcd.

  Only do libxfs_iput on root inode if it's not NULL during libxfs init

15 years agoSync up libxfs to latest kernel code
Barry Naujok [Thu, 20 Nov 2008 05:01:20 +0000 (05:01 +0000)] 
Sync up libxfs to latest kernel code
Merge of master-melb:xfs-cmds:32503a by kenmcd.

  Sync up libxfs to latest kernel code

15 years agoFix mkfs.xfs to allow agcount to be used with su/sw options
Barry Naujok [Thu, 20 Nov 2008 05:00:49 +0000 (05:00 +0000)] 
Fix mkfs.xfs to allow agcount to be used with su/sw options
Merge of master-melb:xfs-cmds:32501a by kenmcd.

  Fix mkfs.xfs to allow -d agcount to be use with su/sw options

15 years agoMake sure mkfs.xfs doesn't ignore -i maxpct option
Barry Naujok [Thu, 20 Nov 2008 05:00:20 +0000 (05:00 +0000)] 
Make sure mkfs.xfs doesn't ignore -i maxpct option
Merge of master-melb:xfs-cmds:32500a by kenmcd.

  Fix mkfs.xfs so it doesn't ignore the -i maxpct option

15 years agoConsolidate btree block handling for xfs_db
Barry Naujok [Fri, 3 Oct 2008 04:35:04 +0000 (04:35 +0000)] 
Consolidate btree block handling for xfs_db

Currently xfs_db has five different implementations for poking at btree
blocks, even duplicating code for btree blocks with entirely identical
layout (bmapbta vs bmapbtd and bno vs cnt).  Merge all these into
a single implementation that uses a table of btree characteristics keyed
of their magic number.

There's probably a way to further consolidate the magic arrays for the
different types, but I don't quite understand xfs_db's table driven
command parser for that.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of master-melb:xfs-cmds:32248a by kenmcd.

  Consolidate btree block handling for xfs_db

15 years agoResync recent minor kernel changes
Barry Naujok [Wed, 1 Oct 2008 06:25:17 +0000 (06:25 +0000)] 
Resync recent minor kernel changes
Merge of master-melb:xfs-cmds:32234a by kenmcd.

  Resync recent minor kernel changes

15 years agoDon't reset dirty flag during inode repair
Barry Naujok [Tue, 30 Sep 2008 16:12:51 +0000 (16:12 +0000)] 
Don't reset dirty flag during inode repair
Merge of master-melb:xfs-cmds:32230a by kenmcd.

  Don't reset dirty flag during inode repair

15 years agoFix xfstests build breakage with install-qa package
Barry Naujok [Tue, 30 Sep 2008 04:22:41 +0000 (04:22 +0000)] 
Fix xfstests build breakage with install-qa package
Merge of master-melb:xfs-cmds:32226a by kenmcd.

  Add new header file to install-qa target

16 years agoUpdate the shared kernel and userspace code to the latest version with
Barry Naujok [Mon, 29 Sep 2008 15:55:04 +0000 (15:55 +0000)] 
Update the shared kernel and userspace code to the latest version with
the generic btree implementation.  Contains one additional patch to move
the __KERNEL__ ifdefs around in xfs_btree.h over the current kernel
version, which is posted and waiting to be commited for the kernel.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Merge of master-melb:xfs-cmds:32222a by kenmcd.

  User space update for refactored btrees

16 years agoUpdate xfsprogs to latest kernel headers and functions
Barry Naujok [Mon, 8 Sep 2008 06:18:43 +0000 (06:18 +0000)] 
Update xfsprogs to latest kernel headers and functions
Merge of master-melb:xfs-cmds:32070a by kenmcd.

16 years agoxfsprogs debian changes
Anibal Monsalve Salazar [Fri, 5 Sep 2008 06:17:20 +0000 (06:17 +0000)] 
xfsprogs debian changes
Merge of master-melb:xfs-cmds:32056a by kenmcd.

  xfsprogs debian changes

16 years agoMake sure xfs_repair can restore bad or missing ".." entries
Barry Naujok [Fri, 5 Sep 2008 04:11:43 +0000 (04:11 +0000)] 
Make sure xfs_repair can restore bad or missing ".." entries
Merge of master-melb:xfs-cmds:32054a by kenmcd.

  Bump to version 2.10.1

16 years agoCheck for invalid di_size in xfs_repair
Barry Naujok [Fri, 5 Sep 2008 04:10:53 +0000 (04:10 +0000)] 
Check for invalid di_size in xfs_repair
Merge of master-melb:xfs-cmds:32051a by kenmcd.

  Check for invalid inode di_size

16 years agoChange the libxfs cache MRU to only store unreferenced blocks
Barry Naujok [Fri, 5 Sep 2008 04:10:01 +0000 (04:10 +0000)] 
Change the libxfs cache MRU to only store unreferenced blocks
so the searching doesn't scan through referenced blocks.
Merge of master-melb:xfs-cmds:32049a by kenmcd.

  Improve libxfs cache RU

16 years agoPoint out the actual source file missing when generateing pkg.pot file
Barry Naujok [Mon, 1 Sep 2008 03:59:15 +0000 (03:59 +0000)] 
Point out the actual source file missing when generateing pkg.pot file
rather than obscure error message
Merge of master-melb:xfs-cmds:32010a by kenmcd.

  Point out the actual source file missage when generating pkg.pot file
  rather than obscure error message

16 years agoCall libxfs_bmbt_disk_get_all directly instead of using a wrapper
Barry Naujok [Wed, 27 Aug 2008 06:11:16 +0000 (06:11 +0000)] 
Call libxfs_bmbt_disk_get_all directly instead of using a wrapper
function
Merge of master-melb:xfs-cmds:31982a by kenmcd.

  Call libxfs_bmbt_disk_get_all directly instead of using a wrapper function

16 years agoDon't destroy file with -N -d file options
Barry Naujok [Wed, 27 Aug 2008 04:13:09 +0000 (04:13 +0000)] 
Don't destroy file with -N -d file options
Merge of master-melb:xfs-cmds:31978a by kenmcd.

  Don't destroy file with -N -d file options

16 years agoIncrease default maximum extent size for xfs_metadump when copying
Barry Naujok [Wed, 27 Aug 2008 04:12:12 +0000 (04:12 +0000)] 
Increase default maximum extent size for xfs_metadump when copying
directory contents to 1000 blocks per extent.
Merge of master-melb:xfs-cmds:31977a by kenmcd.

  Increase default max extent size to 1000 blocks

16 years agoMake sure to pop buffers for a failed read in xfs_check and xfs_metadump (both in...
Barry Naujok [Wed, 27 Aug 2008 04:11:21 +0000 (04:11 +0000)] 
Make sure to pop buffers for a failed read in xfs_check and xfs_metadump (both in xfs_db)
Merge of master-melb:xfs-cmds:31976a by kenmcd.

  Pop buffers for failed reads

16 years agoRefactor process_dinode_int()
Barry Naujok [Wed, 13 Aug 2008 16:03:58 +0000 (16:03 +0000)] 
Refactor process_dinode_int()
Merge of master-melb:xfs-cmds:31887a by kenmcd.

  Refactor process_dinode_int()

16 years agoUserland side of kernel changes for fixing issues with dir2 ondisk differences
Tim Shimmin [Wed, 18 Jun 2008 06:19:52 +0000 (06:19 +0000)] 
Userland side of kernel changes for fixing issues with dir2 ondisk differences
on old ARM ABI boxes.
Merge of master-melb:xfs-cmds:31325a by kenmcd.

  Userland side of kernel changes for fixing issues with dir2 ondisk differences
  on old ARM ABI boxes.

16 years agoFix up incorrect mkfs/growfs output for ascii-ci mode
Barry Naujok [Thu, 5 Jun 2008 04:28:00 +0000 (04:28 +0000)] 
Fix up incorrect mkfs/growfs output for ascii-ci mode
Merge of master-melb:xfs-cmds:31275a by kenmcd.

  Fix up incorrect growfs output for ascii-ci mode

16 years agoFix up inode cluster I/O size in repair for >8KB block size filesystems
Barry Naujok [Tue, 3 Jun 2008 04:24:36 +0000 (04:24 +0000)] 
Fix up inode cluster I/O size in repair for >8KB block size filesystems
Merge of master-melb:xfs-cmds:31267a by kenmcd.

  Fix up inode cluster I/O size in repair for >8KB block size filesystems

16 years agoOnly use xfs_buf_t locks when doing prefetched repair
Barry Naujok [Fri, 30 May 2008 04:31:27 +0000 (04:31 +0000)] 
Only use xfs_buf_t locks when doing prefetched repair
Merge of master-melb:xfs-cmds:31256a by kenmcd.

  Add "usebuflock" field to xfs_init

16 years agoASCII case-insensitive support for xfsprogs v2.10.0
Barry Naujok [Mon, 26 May 2008 04:03:56 +0000 (04:03 +0000)] 
ASCII case-insensitive support for xfsprogs
Merge of master-melb:xfs-cmds:31229a by kenmcd.

  Bump to 2.10.0

16 years agoxfsprogs debian change
Anibal Monsalve Salazar [Wed, 23 Apr 2008 16:18:26 +0000 (16:18 +0000)] 
xfsprogs debian change
Merge of master-melb:xfs-cmds:30984a by kenmcd.

  add compat and watch to the list of files

16 years agoxfsprogs debian changes
Anibal Monsalve Salazar [Wed, 23 Apr 2008 04:03:22 +0000 (04:03 +0000)] 
xfsprogs debian changes
Merge of master-melb:xfs-cmds:30935a by kenmcd.

  xfsprogs debian changes

16 years agodebian new release version
Anibal Monsalve Salazar [Tue, 22 Apr 2008 06:17:27 +0000 (06:17 +0000)] 
debian new release version
Merge of master-melb:xfs-cmds:30925a by kenmcd.

16 years agoAdd lazy-counter enable/disable capability on existing filesystems
Barry Naujok [Mon, 21 Apr 2008 16:08:37 +0000 (16:08 +0000)] 
Add lazy-counter enable/disable capability on existing filesystems
Merge of master-melb:xfs-cmds:30908a by kenmcd.

  Bump version to 2.9.8

16 years agoImprove memory usage limits, esp on 32-bit systems and an easy to use manual memory...
Barry Naujok [Mon, 21 Apr 2008 16:07:47 +0000 (16:07 +0000)] 
Improve memory usage limits, esp on 32-bit systems and an easy to use manual memory limit option
Merge of master-melb:xfs-cmds:30906a by kenmcd.

  Document new -m memory limit option for xfs_repair

16 years agoRemove sysv3 legacy functions
Barry Naujok [Tue, 15 Apr 2008 16:22:09 +0000 (16:22 +0000)] 
Remove sysv3 legacy functions
Merge of master-melb:xfs-cmds:30883a by kenmcd.

  nRemove sysv3 legacy functions

16 years agoMinor fix up in xfs_db man page
Barry Naujok [Tue, 15 Apr 2008 16:21:12 +0000 (16:21 +0000)] 
Minor fix up in xfs_db man page
Merge of master-melb:xfs-cmds:30882a by kenmcd.

  Minor fixup in man page (uuid command)

16 years agoSilently support the -p option
Barry Naujok [Tue, 15 Apr 2008 16:20:23 +0000 (16:20 +0000)] 
Silently support the -p option
Merge of master-melb:xfs-cmds:30881a by kenmcd.

  Support the -p option in fsck.xfs

16 years agoAdd support for MDP in libdisk
Barry Naujok [Tue, 15 Apr 2008 16:19:35 +0000 (16:19 +0000)] 
Add support for MDP in libdisk
Merge of master-melb:xfs-cmds:30879a by kenmcd.

  Add support for MDP in libdisk

16 years agoDuplicate sb_features2 into following 4 bytes in superblock due to bug
Barry Naujok [Mon, 14 Apr 2008 04:11:32 +0000 (04:11 +0000)] 
Duplicate sb_features2 into following 4 bytes in superblock due to bug
Merge of master-melb:xfs-cmds:30855a by kenmcd.

  Detect features2 in wrong location in superblock

16 years agoUpdate mkfs manpage for new defaults:
Niv Sardi [Thu, 13 Mar 2008 05:16:46 +0000 (05:16 +0000)] 
Update mkfs manpage for new defaults:

    log, attr and inodes v2,
    Drop the ability to turn unwritten extents off completly,
    reduce imaxpct for big filesystems, less AGs for single disks configs.
Merge of master-melb:xfs-cmds:30662a by kenmcd.

  Update mkfs manpage for new defaults:

16 years agoDebian and version updates
Barry Naujok [Mon, 3 Mar 2008 03:07:47 +0000 (03:07 +0000)] 
Debian and version updates
Merge of master-melb:xfs-cmds:30604a by kenmcd.

  Bump to 2.9.7

16 years agoUndo making lazy counters defaulting to on
Barry Naujok [Fri, 29 Feb 2008 15:19:38 +0000 (15:19 +0000)] 
Undo making lazy counters defaulting to on
Merge of master-melb:xfs-cmds:30602a by kenmcd.

  Don't enable lazy counters by default

16 years agoScale AG count and AG size appropriately below 128MB
Barry Naujok [Fri, 29 Feb 2008 15:18:51 +0000 (15:18 +0000)] 
Scale AG count and AG size appropriately below 128MB
Merge of master-melb:xfs-cmds:30601a by kenmcd.

  Scale AG count and AG size appropriately below 128MB

16 years agoMake sure device size is aligned to the specified sector size
Barry Naujok [Fri, 29 Feb 2008 15:18:04 +0000 (15:18 +0000)] 
Make sure device size is aligned to the specified sector size
Merge of master-melb:xfs-cmds:30600a by kenmcd.

  Make sure the device size is aligned to the specified sector size

16 years agoFix rounding issue with new mkfs.xfs defaults
Barry Naujok [Thu, 7 Feb 2008 05:18:42 +0000 (05:18 +0000)] 
Fix rounding issue with new mkfs.xfs defaults
Merge of master-melb:xfs-cmds:30465a by kenmcd.

  Version 2.9.6

16 years agoFix metadump build warning
Barry Naujok [Tue, 22 Jan 2008 15:06:52 +0000 (15:06 +0000)] 
Fix metadump build warning
Merge of master-melb:xfs-cmds:30411a by kenmcd.

  Fix metadump build warning

16 years agoUpdate xfsprogs to version 2.9.5
Barry Naujok [Mon, 21 Jan 2008 15:10:57 +0000 (15:10 +0000)] 
Update xfsprogs to version 2.9.5
Merge of master-melb:xfs-cmds:30390a by kenmcd.

  Update to version 2.9.5

16 years agoVerify end of freespace btree extent is valid
Barry Naujok [Mon, 21 Jan 2008 15:10:06 +0000 (15:10 +0000)] 
Verify end of freespace btree extent is valid
Merge of master-melb:xfs-cmds:30388a by kenmcd.

  Verify end of freespace btree extent is valid

16 years agoMake xfs_info handle mount points with spaces
Barry Naujok [Mon, 21 Jan 2008 15:09:18 +0000 (15:09 +0000)] 
Make xfs_info handle mount points with spaces
Merge of master-melb:xfs-cmds:30386a by kenmcd.

  Make xfs_info handle mount points with spaces

16 years agoMake sure "." and ".." are the first two entries in a directory
Barry Naujok [Mon, 21 Jan 2008 15:08:30 +0000 (15:08 +0000)] 
Make sure "." and ".." are the first two entries in a directory
Merge of master-melb:xfs-cmds:30385a by kenmcd.

  Make sure "." and ".." are the first two entries in a directory

16 years agoAdd missing \n in growfs output,
Niv Sardi [Thu, 22 Nov 2007 03:13:35 +0000 (03:13 +0000)] 
Add missing \n in growfs output,

ok ok, that was my fault, fixing it
Merge of master-melb:xfs-cmds:30121a by kenmcd.

16 years agoDefault to log, attr, inodes v2, Drop the ability to turn unwritten extents off compl...
Niv Sardi [Fri, 16 Nov 2007 05:16:34 +0000 (05:16 +0000)] 
Default to log, attr, inodes v2, Drop the ability to turn unwritten extents off completly, reduce imaxpct for big filesystems, less AGs for single disks configs.

-
Default to log version 2

Change logversion to 2 in xfs_mkfs.c
-
Default to version 2 attributes.

Change attrversion from 0 to 2 in xfs_mkfs.c
-
Drop the ability to turn unwritten extents off completly

unwritten extents on linux are generally a bad idea, this option
should not be used.

Remove the mount option from xfs_mkfs.c:
  remove it from option list,
  remove it from mkfs output.

Update xfs.mkfs manpage.
-
V2 inodes per default, and move DFL bits to XFS_DFL_SB_VERSION_BITS,

Activate XFS_SB_VERSION_NLINKBIT per default, which will enable V2 INODES.
refactor bits that we want everytime in XFS_DFL_SB_VERSION_BITS.
-
reduce imaxpct for big filesystems,

imaxpct is set to 25% (XFS_DFL_IMAXIMUM_PCT) for FS < 1 TB,
then 5% for FS < 50 TB,
and then (over 50 TB) 1%.

It is implemented as a simple step function in calc_default_imaxpct()
-
less AGs for single disks configs.

get the underlying structure with get_subvol_stripe_wrapper(),
and pass sunit | swidth as an argument to calc_default_ag_geometry().

if it is set, we are in single disk, get XFS_AG_MAX_BLOCKS for FS >= 4TB,
and calculate ag numbers regarding to that.
get 4 AGs for FS < 4TB.

we calculate according to blocks or count if we have them, add an assert to
ensure we have one of the 2.
Merge of master-melb:xfs-cmds:30077a by kenmcd.

16 years agoFix build for FreeBSD
Barry Naujok [Mon, 22 Oct 2007 15:50:34 +0000 (15:50 +0000)] 
Fix build for FreeBSD
Merge of master-melb:xfs-cmds:29935a by kenmcd.

  Fix build for FreeBSD

16 years agoMake fsck.xfs verify the device exists
Barry Naujok [Tue, 9 Oct 2007 04:10:02 +0000 (04:10 +0000)] 
Make fsck.xfs verify the device exists
Merge of master-melb:xfs-cmds:29851a by kenmcd.

  Make fsck.xfs verify the device exists

16 years agoFix minor errors and some clarification of man pages
Barry Naujok [Thu, 4 Oct 2007 16:03:10 +0000 (16:03 +0000)] 
Fix minor errors and some clarification of man pages
Merge of master-melb:xfs-cmds:29836a by kenmcd.

  Fix minor errors and some clarifications in man pages

17 years agoFix wiping old AG headers and purge whack buffers
Barry Naujok [Tue, 25 Sep 2007 06:15:37 +0000 (06:15 +0000)] 
Fix wiping old AG headers and purge whack buffers
Merge of master-melb:xfs-cmds:29767a by kenmcd.

  Fix wiping old AG headers and purge whack buffers

17 years agoLink xfsprogs utils to libpthread when linking to libxfs
Barry Naujok [Fri, 7 Sep 2007 06:12:37 +0000 (06:12 +0000)] 
Link xfsprogs utils to libpthread when linking to libxfs
Merge of master-melb:xfs-cmds:29621a by kenmcd.

  Bump version number to 2.9.4

17 years agoMake xfs_metadump more robust against bad data
Barry Naujok [Fri, 7 Sep 2007 06:11:50 +0000 (06:11 +0000)] 
Make xfs_metadump more robust against bad data
Merge of master-melb:xfs-cmds:29620a by kenmcd.

  Make xfs_metadump more robust against bad data

17 years agoFix xfs_quota disable, enable, off and remove commands
Donald Douwsma [Wed, 15 Aug 2007 16:22:27 +0000 (16:22 +0000)] 
Fix xfs_quota disable, enable, off and remove commands
Merge of master-melb:xfs-cmds:29395a by kenmcd.

17 years agoFixed up I/O size when doing da_reads for directories
Barry Naujok [Wed, 15 Aug 2007 04:15:18 +0000 (04:15 +0000)] 
Fixed up I/O size when doing da_reads for directories
Merge of master-melb:xfs-cmds:29390a by kenmcd.

  Fixed up I/O size for directory blocks.