commit | e55462b3433944b8524b7824d13d343b6232a691 | [log] [tgz] |
---|---|---|
author | Marek BehĂșn <marek.behun@nic.cz> | Thu May 02 15:28:43 2019 +0200 |
committer | Tom Rini <trini@konsulko.com> | Fri May 03 07:30:31 2019 -0400 |
tree | d9965dcf8d54d31d19588f0597d6d44796c6d9b8 | |
parent | 2daa62aff42dd017a713a595bf9c2fa249c878e1 [diff] |
fs: btrfs: fix btrfs methods return values on failure The btrfs implementation methods .ls(), .size() and .read() returns 1 on failure, but the command handlers expect values <0 on failure. For example if given a nonexistent path, the load command currently returns success, and hush scripting does not work. Fix this by setting return values of these methods to -1 instead of 1 on failure. Signed-off-by: Marek BehĂșn <marek.behun@nic.cz>