Re: [Patch] bit-radix.c: fix declarations

2009-01-22 Thread Américo Wang
On Wed, Jan 21, 2009 at 09:58:22AM -0500, Chris Mason wrote: On Mon, 2009-01-19 at 22:19 +0800, Américo Wang wrote: bit-radix.c should #include bit-radix.h, and add a missing declaration for find_next_bit(). Signed-off-by: WANG Cong wangc...@zeuux.org I fixed this a little differently, the

Re: [Patch] version.sh: clean up the code

2009-01-22 Thread Américo Wang
On Wed, Jan 21, 2009 at 10:01:33AM -0500, Chris Mason wrote: On Mon, 2009-01-19 at 21:51 +0800, Américo Wang wrote: - In bash, integer comparation should use '-eq', not '=='. - Remove code for Mercurial, since btrfs now uses git. version.sh should be removed from the mainline sources and only

[PATCH] btrfs: add better -ENOSPC handling

2009-01-22 Thread Josef Bacik
This patch removes the large 85% brick wall that was keeping btrfs from panicing because it ran out of space, and instead puts a nice 95% drywall in its place. Instead of tracking delalloc bytes on a systemwide basis, just do it as per space info. For now that means basically just one space_info

[PATCH] Add validation for sector size

2009-01-22 Thread ashford
In mkfs.btrfs, the sector size must be a power of two for the second half of the leafsize and nodesize checks to work, but sectorsize is never validated. # diff -u mkfs.c- mkfs.c --- mkfs.c- 2009-01-20 11:37:39.0 -0800 +++ mkfs.c 2009-01-22 10:13:49.0 -0800 @@ -391,14

[PATCH] btrfs-progs: kill check for /'s in labels

2009-01-22 Thread Josef Bacik
This patch kills a check in mkfs's label stuff which doesn't allow labels that have /'s in them. This causes problems for Anaconda which try to label volumes with their mountpoints. Thanks, Signed-off-by: Josef Bacik jba...@redhat.com --- mkfs.c |6 -- 1 files changed, 0 insertions(+),

Re: [PATCH] btrfs-progs: kill check for /'s in labels

2009-01-22 Thread Josef Bacik
On Thu, Jan 22, 2009 at 02:25:44PM -0500, Josef Bacik wrote: This patch kills a check in mkfs's label stuff which doesn't allow labels that have /'s in them. This causes problems for Anaconda which try to label volumes with their mountpoints. Thanks, Arrgh sorry, forgot to kill the int i