[Bug 818373] New: chattr cannot add compression flags (+c) to some files on btrfs
https://bugzilla.novell.com/show_bug.cgi?id=818373 https://bugzilla.novell.com/show_bug.cgi?id=818373#c0 Summary: chattr cannot add compression flags (+c) to some files on btrfs Classification: openSUSE Product: openSUSE 12.3 Version: Final Platform: x86-64 OS/Version: openSUSE 12.3 Status: NEW Severity: Major Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: hartrumpf@gmx.net QAContact: qa-bugs@suse.de Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:20.0) Gecko/20100101 Firefox/20.0 If I try to set the compression flag (+c) on many files (with or without using -R), chattr will fail for some files. I have no clue why it fails on some files and why it succeeds on others. The filesystem is btrfs, with mount options rw,noatime,compress=lzo,space_cache. Reproducible: Always Steps to Reproduce:
cd /your-btrfs-dir-with-mount-option-compresslzo cp -a /usr/bin . cd bin find . -type l | xargs rm chattr -R +c .
Actual Results: chattr: Invalid argument while setting flags on ./speech-dispatcher chattr: Invalid argument while setting flags on ./mysqldumpslow chattr: Invalid argument while setting flags on ./gnome-session chattr: Invalid argument while setting flags on ./autoexpect chattr: Invalid argument while setting flags on ./grops chattr: Invalid argument while setting flags on ./mysqldump chattr: Invalid argument while setting flags on ./myisampack chattr: Invalid argument while setting flags on ./resolveip chattr: Invalid argument while setting flags on ./tomahawk chattr: Invalid argument while setting flags on ./resolve_stack_dump chattr: Invalid argument while setting flags on ./bibtexu chattr: Invalid argument while setting flags on ./smidump chattr: Invalid argument while setting flags on ./qt3to4 chattr: Invalid argument while setting flags on ./my_print_defaults chattr: Invalid argument while setting flags on ./tzselect chattr: Invalid argument while setting flags on ./systemctl chattr: Invalid argument while setting flags on ./piconv chattr: Invalid argument while setting flags on ./mysqladmin chattr: Invalid argument while setting flags on ./mysqlcheck chattr: Invalid argument while setting flags on ./teckit_compile chattr: Invalid argument while setting flags on ./psmandup chattr: Invalid argument while setting flags on ./dislocate chattr: Invalid argument while setting flags on ./bashbug chattr: Invalid argument while setting flags on ./htdig chattr: Invalid argument while setting flags on ./card chattr: Invalid argument while setting flags on ./mysqlimport chattr: Invalid argument while setting flags on ./w3m chattr: Invalid argument while setting flags on ./xml_pp chattr: Invalid argument while setting flags on ./myisamchk chattr: Invalid argument while setting flags on ./transmission-gtk chattr: Invalid argument while setting flags on ./gkrellm chattr: Invalid argument while setting flags on ./inkscape chattr: Invalid argument while setting flags on ./myisam_ftdump chattr: Invalid argument while setting flags on ./mysqlshow chattr: Invalid argument while setting flags on ./xetex chattr: Invalid argument while setting flags on ./showaudio chattr: Invalid argument while setting flags on ./guess_encoding chattr: Invalid argument while setting flags on ./qvfb chattr: Invalid argument while setting flags on ./luatex chattr: Invalid argument while setting flags on ./uum chattr: Invalid argument while setting flags on ./config_data chattr: Invalid argument while setting flags on ./mkinfodir Expected Results: No output (and the c attribute should be set for all specified files). same on openSUSE 12.2 (last tested some months ago) -- 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=818373
https://bugzilla.novell.com/show_bug.cgi?id=818373#c
FeiXiang Zhang
https://bugzilla.novell.com/show_bug.cgi?id=818373
https://bugzilla.novell.com/show_bug.cgi?id=818373#c1
Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=818373
https://bugzilla.novell.com/show_bug.cgi?id=818373#c2
Carlos Robinson
https://bugzilla.novell.com/show_bug.cgi?id=818373
https://bugzilla.novell.com/show_bug.cgi?id=818373#c3
Sven Hartrumpf
Trying to replicate the problem, I did a quick test on a test partition of mine (12.3 VM). I get that error on symlinks, normal files are accepted.
The files that cause errors are not soft links. (I removed them, see the "find" command above.) In a separate test set, 2467 of 277000 text files failed.
I pointed this to the OP in the forum where he asked first, but got no response from him
Now answered, forum software did not email me:-( -- 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=818373
https://bugzilla.novell.com/show_bug.cgi?id=818373#c
Alberto Planas Dominguez
https://bugzilla.novell.com/show_bug.cgi?id=818373
https://bugzilla.novell.com/show_bug.cgi?id=818373#c4
--- Comment #4 from Sven Hartrumpf
https://bugzilla.novell.com/show_bug.cgi?id=818373
https://bugzilla.novell.com/show_bug.cgi?id=818373#c5
--- Comment #5 from David Sterba
https://bugzilla.novell.com/show_bug.cgi?id=818373
https://bugzilla.novell.com/show_bug.cgi?id=818373#c6
Filipe Manana
https://bugzilla.novell.com/show_bug.cgi?id=818373
https://bugzilla.novell.com/show_bug.cgi?id=818373#c7
--- Comment #7 from Filipe Manana
https://bugzilla.novell.com/show_bug.cgi?id=818373
https://bugzilla.novell.com/show_bug.cgi?id=818373#c8
--- Comment #8 from Filipe Manana
https://bugzilla.novell.com/show_bug.cgi?id=818373
https://bugzilla.novell.com/show_bug.cgi?id=818373#c9
--- Comment #9 from Jan Kara
https://bugzilla.novell.com/show_bug.cgi?id=818373
https://bugzilla.novell.com/show_bug.cgi?id=818373#c10
--- Comment #10 from Filipe Manana
participants (1)
-
bugzilla_noreply@novell.com