summaryrefslogtreecommitdiffstats
path: root/src/test/test-loop-block.c
diff options
context:
space:
mode:
authorAidan Dang <dang@aidan.gg>2022-09-25 16:12:10 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2022-10-07 16:36:04 +0200
commitfd83c98e8a462b9b5ae07e3d7a2ace500b50c172 (patch)
tree364be92f922271f10ccef7745970559639814eda /src/test/test-loop-block.c
parentMerge pull request #22998 from DaanDeMeyer/journal-compact-split (diff)
downloadsystemd-fd83c98e8a462b9b5ae07e3d7a2ace500b50c172.tar.xz
systemd-fd83c98e8a462b9b5ae07e3d7a2ace500b50c172.zip
Implement --luks-sector-size for homed
Diffstat (limited to 'src/test/test-loop-block.c')
-rw-r--r--src/test/test-loop-block.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/test-loop-block.c b/src/test/test-loop-block.c
index 2fefbd2eeb..e2b97dd56f 100644
--- a/src/test/test-loop-block.c
+++ b/src/test/test-loop-block.c
@@ -62,7 +62,7 @@ static void* thread_func(void *ptr) {
assert_se(mkdtemp_malloc(NULL, &mounted) >= 0);
- r = loop_device_make(fd, O_RDONLY, 0, UINT64_MAX, LO_FLAGS_PARTSCAN, LOCK_SH, &loop);
+ r = loop_device_make(fd, O_RDONLY, 0, UINT64_MAX, 0, LO_FLAGS_PARTSCAN, LOCK_SH, &loop);
if (r < 0)
log_error_errno(r, "Failed to allocate loopback device: %m");
assert_se(r >= 0);
@@ -217,7 +217,7 @@ static int run(int argc, char *argv[]) {
return 0;
}
- assert_se(loop_device_make(fd, O_RDWR, 0, UINT64_MAX, LO_FLAGS_PARTSCAN, LOCK_EX, &loop) >= 0);
+ assert_se(loop_device_make(fd, O_RDWR, 0, UINT64_MAX, 0, LO_FLAGS_PARTSCAN, LOCK_EX, &loop) >= 0);
#if HAVE_BLKID
assert_se(dissect_loop_device(loop, NULL, NULL, 0, &dissected) >= 0);