Fwd: btrfs Wiki account request

2014-07-08 Thread Sjon Hortensius
I wrote a simple alternative for a script that is currently on the
btrfs wiki (for showing quotas) in bash instead of Python. I have
attempted to add this to the page but after entering the captcha 15
times my account was rejected because of a missing bio. Maybe someone
can add this to https://btrfs.wiki.kernel.org/index.php/Quota_support:

#!/bin/bash

[[ ! -d $1 ]]  { echo Please pass mountpoint as first argument 2 ;
exit 1 ; }

while read x i x g x x l x p
do
volName[i]=$p
done  (btrfs subvolume list $1)

while read g r e
do
[[ -z $name ]]  echo -e subvol\tqgroup\ttotal\tunshared
group=${g##*/}
[[ ! -z ${volName[group]} ]]  name=${volName[group]} || name='(unknown)'
echo $name $g `numfmt --to=iec $r` `numfmt --to=iec $e`
done  (btrfs qgroup show $1 | tail -n+3) | column -t

Thanks,
Sjon

On Tue, Feb 4, 2014 at 5:38 PM, MediaWiki Mail wikiad...@kernel.org wrote:
 Sorry, your request for an account Sjon Hortensius has been rejected on 
 btrfs Wiki.

 try again with a useful bio

 There may be contact lists on site that you can use if you want to know more 
 about user account policy.
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


btrfs-progs 0.20rc1.1, linux 3.7.6 - new filesystem: failed to recover relocation

2013-02-11 Thread Sjon Hortensius
I have just completed installing an archlinux machine with 2 btrfs
partitions, one works fine (the rootfs), the other one I cannot mount.
Even after recreating the filesystem I still cannot mount it. I
receive te following output in my dmesg:

[ 6526.037089] device fsid 74cc8eb8-f60a-4797-9ab3-0c8ac4fe847f devid
1 transid 3 /dev/vdb1
[ 6526.037763] btrfs: disk space caching is enabled
[ 6526.038415] btrfs: failed to recover relocation
[ 6526.039716] btrfs: open_ctree failed

this is on a virtual machine using libvirt, a virtio hdd and kvm;
btrfsck reports no errors. An image of this filesystem can be found
here: 
http://home.react.nl/~sjon/bug-reports/btrfs/btrfs-failed-to-recover-relocation
(29 KiB)

After recreating the same filesystem again on a smaller (100Mb)
filesystem btrfsck reports:

Check tree block failed, want=139264, have=0
Check tree block failed, want=139264, have=0
Check tree block failed, want=139264, have=0
read block failed check_tree_block
Couldn't read chunk root

and btrfs-image segfaults on this. I have dumped the partition with
dd, it can be found here:
http://home.react.nl/~sjon/bug-reports/btrfs/vdb1.raw.gz (98 KiB).

I couldn't find any recent reports mentioning these sort of problems.

Thanks,
Sjon Hortensius
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: btrfs-progs 0.20rc1.1, linux 3.7.6 - new filesystem: failed to recover relocation

2013-02-11 Thread Sjon Hortensius
On Mon, Feb 11, 2013 at 2:27 PM, David Sterba dste...@suse.cz wrote:
 On Mon, Feb 11, 2013 at 02:09:56PM +0100, Sjon Hortensius wrote:
 I have just completed installing an archlinux machine with 2 btrfs
 partitions, one works fine (the rootfs), the other one I cannot mount.
 Even after recreating the filesystem I still cannot mount it. I
 receive te following output in my dmesg:

 [ 6526.037089] device fsid 74cc8eb8-f60a-4797-9ab3-0c8ac4fe847f devid
 1 transid 3 /dev/vdb1
 [ 6526.037763] btrfs: disk space caching is enabled
 [ 6526.038415] btrfs: failed to recover relocation
 [ 6526.039716] btrfs: open_ctree failed

 What was the size of the filesystem?

The first filesystem (of which I created the image) was ~ 20 GiB; the
dd dump is from a 100 MiB partition.

 btrfsck reports no errors. An image of this filesystem can be found
 here: 
 http://home.react.nl/~sjon/bug-reports/btrfs/btrfs-failed-to-recover-relocation
 (29 KiB)

 Restoring the image produces a 4MB file, which is kind of too small,
 there's a patch for mkfs to prevent creating such a fs. I'll get to
 adding it to progs integration soon.

 david

While debugging this my vm-host began throwing segfaults as well, so I
think this problem was caused by something else (namely this:
https://bugzilla.redhat.com/show_bug.cgi?id=893854).

Thanks anyway.
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: btrfs-progs 0.20rc1.1, linux 3.7.6 - new filesystem: failed to recover relocation

2013-02-11 Thread Sjon Hortensius
After converting all my raw images to qcow2 the host no longer
segfaults, but I still get a corrupted btrfs filesystem. Please have a
look at this new image at
http://home.react.nl/~sjon/bug-reports/btrfs/btrfs-corrupt.qcow2.gz
(16 KiB) It contains a 20 GiB disk with 1 partition that btrfsck
(again) has no problems with, but I cannot mount it.

On Mon, Feb 11, 2013 at 3:08 PM, Sjon Hortensius s...@hortensius.net wrote:
 On Mon, Feb 11, 2013 at 2:27 PM, David Sterba dste...@suse.cz wrote:
 On Mon, Feb 11, 2013 at 02:09:56PM +0100, Sjon Hortensius wrote:
 I have just completed installing an archlinux machine with 2 btrfs
 partitions, one works fine (the rootfs), the other one I cannot mount.
 Even after recreating the filesystem I still cannot mount it. I
 receive te following output in my dmesg:

 [ 6526.037089] device fsid 74cc8eb8-f60a-4797-9ab3-0c8ac4fe847f devid
 1 transid 3 /dev/vdb1
 [ 6526.037763] btrfs: disk space caching is enabled
 [ 6526.038415] btrfs: failed to recover relocation
 [ 6526.039716] btrfs: open_ctree failed

 What was the size of the filesystem?

 The first filesystem (of which I created the image) was ~ 20 GiB; the
 dd dump is from a 100 MiB partition.

 btrfsck reports no errors. An image of this filesystem can be found
 here: 
 http://home.react.nl/~sjon/bug-reports/btrfs/btrfs-failed-to-recover-relocation
 (29 KiB)

 Restoring the image produces a 4MB file, which is kind of too small,
 there's a patch for mkfs to prevent creating such a fs. I'll get to
 adding it to progs integration soon.

 david

 While debugging this my vm-host began throwing segfaults as well, so I
 think this problem was caused by something else (namely this:
 https://bugzilla.redhat.com/show_bug.cgi?id=893854).

 Thanks anyway.
--
To unsubscribe from this list: send the line unsubscribe linux-btrfs in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html