Skip to contentSkip to conversation

tools/virtiofsd: include --socket-group in help

PATCH In review Alex Bennée 2 participants 2 messages Mar 18, 2021 Arm/actions semi architecture

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tools/virtiofsd: include --socket-group in help

I confused myself wandering if this had been merged by looking at the help output. It seems fuse_opt doesn't automagically add to help output so lets do it now.

Updates: f6698f2b03 ("tools/virtiofsd: add support for --socket-group")

---
 tools/virtiofsd/fuse_lowlevel.c | 1 +
 1 file changed, 1 insertion(+)
tools/virtiofsd/fuse_lowlevel.c +1 -0
index 1aa26c6333..58e32fc963 100644
@@ -2450,6 +2450,7 @@ void fuse_lowlevel_help(void)
     printf(
         "    -o allow_root              allow access by root\n"
         "    --socket-path=PATH         path for the vhost-user socket\n"
+        "    --socket-group=GRNAME      name of group for the vhost-user socket\n"
         "    --fd=FDNUM                 fd number of vhost-user socket\n"
         "    --thread-pool-size=NUM     thread pool size limit (default %d)\n",
         THREAD_POOL_SIZE);
Signature · 1 line
2.20.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 16 lines · Alex Bennée

I confused myself wandering if this had been merged by looking at the help output. It seems fuse_opt doesn't automagically add to help output so lets do it now.

Updates: f6698f2b03 ("tools/virtiofsd: add support for --socket-group")

---
  tools/virtiofsd/fuse_lowlevel.c | 1 +
  1 file changed, 1 insertion(+)
tools/virtiofsd/fuse_lowlevel.c +0 -0
index 1aa26c6333..58e32fc963 100644

tools/virtiofsd/fuse_lowlevel.c void fuse_lowlevel_help(void) · line 2456

Quoted 7 lines
tools/virtiofsd/fuse_lowlevel.c +1 -0
@@ -2450,6 +2450,7 @@ void fuse_lowlevel_help(void)
      printf(
          "    -o allow_root              allow access by root\n"
          "    --socket-path=PATH         path for the vhost-user socket\n"
+        "    --socket-group=GRNAME      name of group for the vhost-user socket\n"
          "    --fd=FDNUM                 fd number of vhost-user socket\n"
          "    --thread-pool-size=NUM     thread pool size limit (default %d)\n",
          THREAD_POOL_SIZE);

And it looks like this is already in the man page too, so I think this patches the last place it was missing from, nice!