Re: [PATCH 1/2] btrfs-progs: qgroup limit: error out if input value is negative

2015-06-05 Thread David Sterba
On Wed, Jun 03, 2015 at 05:27:03PM +0800, Dongsheng Yang wrote: If we pass a negative value to command qgroup limit, btrfs-progs would convert it to unsigned long long silently. That's a little confusing to user, why I can limit my quota to a negative value. This patch add a check in

[PATCH 1/2] btrfs-progs: qgroup limit: error out if input value is negative

2015-06-03 Thread Dongsheng Yang
If we pass a negative value to command qgroup limit, btrfs-progs would convert it to unsigned long long silently. That's a little confusing to user, why I can limit my quota to a negative value. This patch add a check in parse_limit, if the input value is negative, error out to user.