https://bugzilla.novell.com/show_bug.cgi?id=818373 https://bugzilla.novell.com/show_bug.cgi?id=818373#c6 Filipe Manana <fdmanana@suse.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |fdmanana@suse.com --- Comment #6 from Filipe Manana <fdmanana@suse.com> 2014-08-13 18:28:08 UTC --- This fails because chattr +c calls the getflags ioctl to get the current flags, which include FS_NOCOMP_FL because the file isn't compressible as David said, and adds the requested flags (+c) to the flags it got. Finally it calls the setflags ioctl with flags == (FS_NOCOMP_FL | FS_COMPR_FL). The btrfs ioctl returns with EINVAL in ioctl.c:check_flags(): if ((flags & FS_NOCOMP_FL) && (flags & FS_COMPR_FL)) return -EINVAL; If you try calling chattr =c instead, it won't OR the current flags with the requested flags, and whence no error returned. -- 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.