On Tue, Apr 15, 2014 at 05:22:24PM +0800, 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 the codes have already check the errno to avoid unnecessary error
message, so the return
Original Message
Subject: Re: [PATCH v2 4/4] btrfs-progs: Fix the return value when
executing 'btrfs pro get' on a uncompress file.
From: David Sterba dste...@suse.cz
To: Qu Wenruo quwen...@cn.fujitsu.com
Date: 2014年04月22日 20:37
On Tue, Apr 15, 2014 at 05:22:24PM +0800, Qu
When executing 'btrfs pro get' on a file which is not compressed, return
value will always be 50 since prop_compress() return -ENOATTR.
But the codes have already check the errno to avoid unnecessary error
message, so the return value should also set to 0.
Signed-off-by: Qu Wenruo
On Tue, Apr 15, 2014 at 10:22 AM, Qu Wenruo quwen...@cn.fujitsu.com 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 the codes have already check the errno to avoid unnecessary error
message, so