projects
/
systemd
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0197fb5
)
repart: Use loop_device_error_is_fatal() in one more place
author
Daan De Meyer
<daan.j.demeyer@gmail.com>
Wed, 26 Jun 2024 18:32:13 +0000
(20:32 +0200)
committer
Daan De Meyer
<daan.j.demeyer@gmail.com>
Wed, 21 Aug 2024 09:29:47 +0000
(11:29 +0200)
src/partition/repart.c
patch
|
blob
|
history
diff --git
a/src/partition/repart.c
b/src/partition/repart.c
index 7db493cafc323ef24861bfcec3251fcb503e2c06..860e69dc1948beff3ffd003719f875fea7fd4ea6 100644
(file)
--- a/
src/partition/repart.c
+++ b/
src/partition/repart.c
@@
-6864,7
+6864,7
@@
static int context_minimize(Context *context) {
if (arg_offline <= 0) {
r = loop_device_make(fd, O_RDWR, 0, UINT64_MAX, context->sector_size, 0, LOCK_EX, &d);
- if (r < 0 &&
(arg_offline == 0 || (r != -ENOENT && !ERRNO_IS_PRIVILEGE(r)) || !strv_isempty(p->subvolumes)
))
+ if (r < 0 &&
loop_device_error_is_fatal(p, r
))
return log_error_errno(r, "Failed to make loopback device of %s: %m", temp);
}