projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ed0b16e
)
shared/machine-pool: fix mkfs.btrfs checking
author
Evgeny Vereshchagin
<evvers@ya.ru>
Sun, 13 Mar 2016 23:51:37 +0000
(23:51 +0000)
committer
Evgeny Vereshchagin
<evvers@ya.ru>
Mon, 14 Mar 2016 00:01:33 +0000
(
00:01
+0000)
binary_is_good translates ENOENT to 0
See https://github.com/systemd/systemd/commit/
85eca92e
#diff-bcad68c477b6651521e880c40b7a9b40R813
src/shared/machine-pool.c
patch
|
blob
|
history
diff --git
a/src/shared/machine-pool.c
b/src/shared/machine-pool.c
index
f080b84
..
e0bad03
100644
(file)
--- a/
src/shared/machine-pool.c
+++ b/
src/shared/machine-pool.c
@@
-239,10
+239,8
@@
int setup_machine_directory(uint64_t size, sd_bus_error *error) {
}
r = mkfs_exists("btrfs");
- if (r == -ENOENT) {
- log_debug("mkfs.btrfs is missing, cannot create loopback file for /var/lib/machines.");
- return 0;
- }
+ if (r == 0)
+ return sd_bus_error_set_errnof(error, ENOENT, "Cannot set up /var/lib/machines, mkfs.btrfs is missing");
if (r < 0)
return r;