summaryrefslogtreecommitdiff
path: root/cmd_fusemount.c
diff options
context:
space:
mode:
authorJustin Husted <sigstop@gmail.com>2019-11-09 19:00:56 -0800
committerJustin Husted <sigstop@gmail.com>2019-11-09 19:00:56 -0800
commitc3f09963af8f2268aa0448a5d9ec1d99135121a2 (patch)
tree3e26554ddb29fe48aef1f341f2f1ab873a9c234c /cmd_fusemount.c
parent7bf4aa61a77b9ff6d0c066d370b03e67a2eaade4 (diff)
Implement basic fuse mount tests.
The purpose of these tests is to verify that bcachefs fuse support works as expected, including gathering valgrind errors from the bcachefs executable. To do this, bcachefs is executed from a helper thread in the new util.BFuse class, which goes about setting up and validating the valgrind data as well as making sure the mount has completed sufficiently before the test starts executing. This also includes some basic functionality smoke tests which cover file creation, timestamps, etc. Signed-off-by: Justin Husted <sigstop@gmail.com>
Diffstat (limited to 'cmd_fusemount.c')
-rw-r--r--cmd_fusemount.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/cmd_fusemount.c b/cmd_fusemount.c
index de03ca18..96a2339d 100644
--- a/cmd_fusemount.c
+++ b/cmd_fusemount.c
@@ -1243,6 +1243,9 @@ int cmd_fusemount(int argc, char *argv[])
if (fuse_session_mount(se, fuse_opts.mountpoint))
die("fuse_mount err: %m");
+ /* This print statement is a trigger for tests. */
+ printf("Fuse mount initialized.\n");
+
fuse_daemonize(fuse_opts.foreground);
ret = fuse_session_loop(se);