[PATCH] Btrfs: make compress and nodatacow mount options mutually exclusive

2012-09-20 Thread Andrei Popa
This patch: - removes compress flags and notifies that the compression has been disabled if the filesystem is mounted with nodatacow - removes nodatacow and nodatasum flags if mounted with compress. Signed-off-by: Andrei Popa --- fs/btrfs/super.c | 14 +- 1 files changed, 13 inser

Re: btrfs fi df won't show total=

2012-07-12 Thread Andrei Popa
On Tue, 2012-07-10 at 00:52 +0300, Ilya Dryomov wrote: > mkfs creates those non-raid chunks for a pretty stupid reason, they > really shouldn't be there if you create a raid10 fs. Balance does the > right thing and removes them. Fixing this along with another mkfs > annoyance related to this one

Re: cannot remove files: "rm" gives "no space left on device", 3.2.0-24, ubuntu

2012-06-16 Thread Andrei Popa
On Sun, 2012-06-17 at 06:14 +0200, rupert THURNER wrote: > >> Will result in anything reported in 'dmesg' output? > > [ 6431.514454] device label 388gb-data devid 1 transid 1086 /dev/sda6 > > [ 6431.514969] btrfs: disabling disk space caching > > [ 6431.514977] btrfs: force clearing of disk cache >

Re: [PATCH] Btrfs: Fix NOCOW file attribute

2012-06-16 Thread Andrei Popa
) ext logical physical expected length flags 0 0 1473536 8 eof a: 1 extent found It's supposed to honour the NOCOW attribute or not ? On Sat, 2012-06-16 at 15:37 +0300, Andrei Popa wrote: > Adds BTRFS_INODE_NODATASUM to inode flags when setting NOCOW for a file > (cha

[PATCH] Btrfs: Fix NOCOW file attribute

2012-06-16 Thread Andrei Popa
Adds BTRFS_INODE_NODATASUM to inode flags when setting NOCOW for a file (chattr +C file). In btrfs, NOCOW implies NODATASUM and without setting NODATASUM, btrfs doesn't honour correctly the NOCOW attribute. Signed-off-by: Andrei Popa --- fs/btrfs/ioctl.c |4 ++-- 1 files chang

[PATCH] Btrfs: Fix NOCOW file attribute

2012-06-16 Thread Andrei Popa
Btrfs doesn't honour correctly the NOCOW file attribute, this patch fixes this. NOCOW per file support has been added in e2fsprogs-1.42.4 Andrei Popa (1): Btrfs: Fix NOCOW file attribute fs/btrfs/ioctl.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) -- 1.7.3.4

Re: cannot remove files: "rm" gives "no space left on device", 3.2.0-24, ubuntu

2012-06-16 Thread Andrei Popa
https://btrfs.wiki.kernel.org/index.php/FAQ#Help.21_I_ran_out_of_disk_space.21 On Sat, 2012-06-16 at 13:16 +0200, rupert THURNER wrote: > how would i be able to delete something off this btrfs partition > again? i saw the following messages in the archives which seem to be a > little similar ...

Re: [PATCH] Btrfs: add "nocompress" mount option

2012-06-15 Thread Andrei Popa
On Fri, 2012-06-15 at 12:50 +0200, David Sterba wrote: > mount -o compress,nocompress /dev /mnt > > Is it on or off? Yeah we can document that nocompress has higher > priority. But then I can't turn a nocompress option back to compress via > remount. This is possible with Arnd's patch. This hap

Re: [PATCH] Btrfs: add "nocompress" mount option

2012-06-15 Thread Andrei Popa
mount -o compress,nocompress /dev /mnt > > Is it on or off? Yeah we can document that nocompress has higher > priority. But then I can't turn a nocompress option back to compress via > remount. This is possible with Arnd's patch. Ok, how can we get his patch mer

[PATCH] Btrfs: add "nocompress" mount option

2012-06-15 Thread Andrei Popa
ompression: # mount -o remount,nocompress /mnt/btrfs This option is usefull in cases when we have a filesystem mounted with "compress" and we want to disable compression but we don't want to umount and mount it. Signed-off-by: Andrei Popa --- fs/btrfs/ctree.h |1 + fs/btrfs/su

[btrfs-progs] btrfs fi df output

2012-05-29 Thread Andrei Popa
Hello, I have a question regarding "btrfs filesystem df"output. # btrfs fi df /mnt/test Data: total=3.01GB, used=512.19MB System, DUP: total=8.00MB, used=4.00KB System: total=4.00MB, used=0.00 <= What this means? For what is used? I've never seen this incremented Metada

Re: [PATCH v3 0/3] Btrfs-progs: support get/reset device stats via ioctl

2012-05-17 Thread Andrei Popa
On Thu, 2012-05-17 at 10:44 +0200, Stefan Behrens wrote: > On 05/16/2012 19:03, Andrei Popa wrote: > > It would be nice if this function could show the file names affected by > > errors, in case of a single, non-redundant drive, btrfs-progs should > > show what files a

Re: [PATCH v3 0/3] Btrfs-progs: support get/reset device stats via ioctl

2012-05-16 Thread Andrei Popa
Hi, It would be nice if this function could show the file names affected by errors, in case of a single, non-redundant drive, btrfs-progs should show what files are affected by errors. Then, an admin could restore only those files from backup. On Wed, 2012-05-16 at 18:50 +0200, Stefan Behrens wro

brfs-progs patches

2012-05-11 Thread Andrei Popa
Hello, In the btrfs wiki ( https://btrfs.wiki.kernel.org/index.php/Btrfs_source_repositories ) it says: "Hugo Mills maintains an "integration" branch of all the patches for the userspace tools that have been seen on the mailing list. There are two important branches in this repository. For "stable

btrfs tools typo

2012-05-11 Thread Andrei Popa
In the latest btrfs tools from git it's a typo: ierdnac-hp ~ # btrfs|grep dafault btrfs subvolume get-dafault btrfs subvolume set-dafault ierdnac-hp ~ # Andrei -- Andrei Popa NOC Manager - Nextgen Communications 0760 683 280 smime.p7s Description: S/MIME cryptographic signature