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:
46c5cf4
)
nspawn: fix copy/reflink fallback when directory already exists (#8781)
author
Milan
<me@petabyteboy.de>
Tue, 24 Apr 2018 09:38:08 +0000
(11:38 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Tue, 24 Apr 2018 09:38:08 +0000
(11:38 +0200)
src/basic/btrfs-util.c
patch
|
blob
|
history
diff --git
a/src/basic/btrfs-util.c
b/src/basic/btrfs-util.c
index
77e9d90
..
7720d98
100644
(file)
--- a/
src/basic/btrfs-util.c
+++ b/
src/basic/btrfs-util.c
@@
-1690,7
+1690,7
@@
int btrfs_subvol_snapshot_fd(int old_fd, const char *new_path, BtrfsSnapshotFlag
if (r == -ENOTTY && (flags & BTRFS_SNAPSHOT_FALLBACK_DIRECTORY)) {
/* If the destination doesn't support subvolumes, then use a plain directory, if that's requested. */
if (mkdir(new_path, 0755) < 0)
- return
r
;
+ return
-errno
;
plain_directory = true;
} else if (r < 0)