[Bug 895825] New: btrfs doesn't clear the compression flag once set
https://bugzilla.novell.com/show_bug.cgi?id=895825 https://bugzilla.novell.com/show_bug.cgi?id=895825#c0 Summary: btrfs doesn't clear the compression flag once set Classification: openSUSE Product: openSUSE Factory Version: 201408* Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Kernel AssignedTo: kernel-maintainers@forge.provo.novell.com ReportedBy: asn@cryptomilk.org QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Firefox/31.0 btrfs doesn't reset the compression flag once set: Reproducible: Always Steps to Reproduce: asn@magrathea:~/workspace/projects/samba/git> cd st/ asn@magrathea:~/workspace/projects/samba/git/st> mkdir a asn@magrathea:~/workspace/projects/samba/git/st> chattr +c a asn@magrathea:~/workspace/projects/samba/git/st> touch a/file asn@magrathea:~/workspace/projects/samba/git/st> lsattr a/file --------c------- a/file asn@magrathea:~/workspace/projects/samba/git/st> chattr -c a asn@magrathea:~/workspace/projects/samba/git/st> touch a/file2 asn@magrathea:~/workspace/projects/samba/git/st> lsattr a/file2 --------c------- a/file2 asn@magrathea:~/workspace/projects/samba/git/st> lsattr -d a ---------------- a -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=895825
https://bugzilla.novell.com/show_bug.cgi?id=895825#c
Andreas Schneider
https://bugzilla.novell.com/show_bug.cgi?id=895825
https://bugzilla.novell.com/show_bug.cgi?id=895825#c1
David Disseldorp
Steps to Reproduce: asn@magrathea:~/workspace/projects/samba/git> cd st/ asn@magrathea:~/workspace/projects/samba/git/st> mkdir a asn@magrathea:~/workspace/projects/samba/git/st> chattr +c a asn@magrathea:~/workspace/projects/samba/git/st> touch a/file asn@magrathea:~/workspace/projects/samba/git/st> lsattr a/file --------c------- a/file asn@magrathea:~/workspace/projects/samba/git/st> chattr -c a asn@magrathea:~/workspace/projects/samba/git/st> touch a/file2 asn@magrathea:~/workspace/projects/samba/git/st> lsattr a/file2 --------c------- a/file2 asn@magrathea:~/workspace/projects/samba/git/st> lsattr -d a ---------------- a
So the problem is that the compression flag continues to be inherited by nested files after it has been cleared on the parent directory. I'm not able to reproduce this on openSUSE 13.1 or SLE12, so this appears to be a newly introduced regression. I'll look at putting together an xfstests reproducer for this. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=895825
https://bugzilla.novell.com/show_bug.cgi?id=895825#c2
--- Comment #2 from David Sterba
https://bugzilla.novell.com/show_bug.cgi?id=895825
https://bugzilla.novell.com/show_bug.cgi?id=895825#c3
--- Comment #3 from Filipe Manana
https://bugzilla.novell.com/show_bug.cgi?id=895825
https://bugzilla.novell.com/show_bug.cgi?id=895825#c4
--- Comment #4 from Filipe Manana
https://bugzilla.novell.com/show_bug.cgi?id=895825
https://bugzilla.novell.com/show_bug.cgi?id=895825#c5
Filipe Manana
https://bugzilla.novell.com/show_bug.cgi?id=895825
https://bugzilla.novell.com/show_bug.cgi?id=895825#c6
--- Comment #6 from Filipe Manana
https://bugzilla.novell.com/show_bug.cgi?id=895825
https://bugzilla.novell.com/show_bug.cgi?id=895825#c7
--- Comment #7 from David Disseldorp
Forgot to mention before, but to get around 'chattr -c' not working, you can use:
btrfs property set some_dir_or_file ''
It requires btrfs-progs v3.14+.
This bug was the result of a Samba vfs_btrfs workload, which uses ioctl(FS_IOC_SETFLAGS/FS_IOC_GETFLAGS): http://git.samba.org/?p=samba.git;a=blob;f=source3/modules/vfs_btrfs.c;hb=HE... We could change it over to manipulate "btrfs.*" xattrs, but I'd prefer to keep it as is. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=895825
https://bugzilla.novell.com/show_bug.cgi?id=895825#c8
--- Comment #8 from David Sterba
https://bugzilla.novell.com/show_bug.cgi?id=895825
https://bugzilla.novell.com/show_bug.cgi?id=895825#c9
--- Comment #9 from Filipe Manana
https://bugzilla.novell.com/show_bug.cgi?id=895825
https://bugzilla.novell.com/show_bug.cgi?id=895825#c10
--- Comment #10 from David Disseldorp
So should I:
1) add the patch to some kernel-source branch, or
2) do nothing, wait for it to get into some upstream release
I think it's fine to wait for upstream in this case, as this is an openSUSE Factory bug.
ddis: another workaround, if you call FS_IOC_SETFLAGS with FS_NOCOMP_FL it disables compression, and then if you don't want that flag, call it again without FS_NOCOMP_FL
You mean that disables compression completely (BTRFS_INODE_NOCOMPRESS)? I don't think we can map that to anything for Windows clients, as they're only able to distinguish between file/folder compression on/off, or full device-layer compression. -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=895825
https://bugzilla.novell.com/show_bug.cgi?id=895825#c11
--- Comment #11 from Andreas Schneider
I think it's fine to wait for upstream in this case, as this is an openSUSE Factory bug.
So you're sure that this doesn't happen on openSUSE 13.2? -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=895825
https://bugzilla.novell.com/show_bug.cgi?id=895825#c12
--- Comment #12 from Filipe Manana
http://bugzilla.novell.com/show_bug.cgi?id=895825
--- Comment #15 from Filipe Manana
http://bugzilla.novell.com/show_bug.cgi?id=895825
--- Comment #16 from Lars Müller
http://bugzilla.novell.com/show_bug.cgi?id=895825
David Disseldorp
You'll need kernel 3.16.7.
Commit dfcb69eb4babcb4d172570734bd36da424b43388 of openSUSE-13.2 added patches.kernel.org/patch-3.16.6-7. Perhaps you've not installed the latest kernel package or maybe there isn't any available yet for 3.16.7?
I'm on 3.16.6-2 - doesn't look like 3.16.7 is available yet... https://build.opensuse.org/package/view_file/openSUSE:13.2:Update/kernel-des... Thanks for checking. If the fix is queued for maintenance, then this can be closed again IMO. -- You are receiving this mail because: You are on the CC list for the bug.
http://bugzilla.novell.com/show_bug.cgi?id=895825
Filipe Manana
participants (1)
-
bugzilla_noreply@novell.com