btrfs: when querying quota, make sure we don't choke if quota is disabled
authorLennart Poettering <lennart@poettering.net>
Tue, 10 Nov 2015 20:37:49 +0000 (21:37 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 10 Nov 2015 20:37:49 +0000 (21:37 +0100)
commit12ee6186dc4431b8d75f8becb236ec840feedb6e
treea45afd6f08fe44a48bdb2cbdffed0783b162233e
parent17afc8f27b7850ca479f0c3720680b90881d8e6e
btrfs: when querying quota, make sure we don't choke if quota is disabled

When quota is disabled there's no quota tree on the fs, which results in
the SEARCH ioctl to return ENOENT. Handle this nicely: treat this the
same way as the case where the quota tree is around but doesn't carry
the searched for fields.
src/basic/btrfs-util.c