commit | cd22e34c11e7211c54d31f854672fa26185990a5 | [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 | 72c69ea8d603fd2448dd1d7c399c4f77b77773b7 [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>