Re: [PATCH 4/4] btrfs-progs: Fix the return value when executing 'btrfs pro get' on a uncompress file.

2014-04-15 Thread Qu Wenruo
Original Message Subject: Re: [PATCH 4/4] btrfs-progs: Fix the return value when executing 'btrfs pro get' on a uncompress file. From: Filipe David Manana To: Qu Wenruo Date: 2014年04月15日 17:09 On Tue, Apr 15, 2014 at 8:04 AM, Qu Wenruo wrote: When executing

Re: [PATCH 4/4] btrfs-progs: Fix the return value when executing 'btrfs pro get' on a uncompress file.

2014-04-15 Thread Filipe David Manana
On Tue, Apr 15, 2014 at 8:04 AM, Qu Wenruo wrote: > When executing 'btrfs pro get' on a file which is not compressed, return > value will always be 50 since prop_compress() return -ENOATTR. > > But this should be ignored and other prop_XXX() returns 0, so when > prop_compress() is executed on unco

[PATCH 4/4] btrfs-progs: Fix the return value when executing 'btrfs pro get' on a uncompress file.

2014-04-15 Thread Qu Wenruo
When executing 'btrfs pro get' on a file which is not compressed, return value will always be 50 since prop_compress() return -ENOATTR. But this should be ignored and other prop_XXX() returns 0, so when prop_compress() is executed on uncompress file, it should return 0. Signed-off-by: Qu Wenruo