mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-23 17:34:00 +03:00
homework: remove duplicate error logging when doing ext4 resizes
This commit is contained in:
parent
fc4941d61c
commit
c8e2a76807
@ -2932,12 +2932,15 @@ int home_resize_luks(
|
||||
}
|
||||
|
||||
/* Now resize the file system */
|
||||
if (resize_type == CAN_RESIZE_ONLINE)
|
||||
if (resize_type == CAN_RESIZE_ONLINE) {
|
||||
r = resize_fs(setup->root_fd, new_fs_size, NULL);
|
||||
else
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to resize file system: %m");
|
||||
} else {
|
||||
r = ext4_offline_resize_fs(setup, new_fs_size, user_record_luks_discard(h), user_record_mount_flags(h));
|
||||
if (r < 0)
|
||||
return log_error_errno(r, "Failed to resize file system: %m");
|
||||
if (r < 0)
|
||||
return r;
|
||||
}
|
||||
|
||||
log_info("File system resizing completed.");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user