21504: Add an `arv-mount --exec` example
authorBrett Smith <brett.smith@curii.com>
Mon, 26 Feb 2024 16:16:48 +0000 (11:16 -0500)
committerBrett Smith <brett.smith@curii.com>
Mon, 26 Feb 2024 16:53:25 +0000 (11:53 -0500)
Arvados-DCO-1.1-Signed-off-by: Brett Smith <brett.smith@curii.com>

doc/sdk/fuse/options.html.textile.liquid

index 0f16e3d688f98691f969f941dfb1b1ad92ebdf77..c4f5a6082605d0ae2a75be290a7c4034f33b12ae 100644 (file)
@@ -122,3 +122,21 @@ table(table table-bordered table-condensed).
 |@--encoding ENCODING@|Filesystem character encoding (default 'utf-8'; specify a name from the "Python codec registry":https://docs.python.org/3/library/codecs.html#standard-encodings)|
 |@--retries RETRIES@|Maximum number of times to retry server requests that encounter temporary failures (e.g., server down). Default 10.|
 |@--storage-classes CLASSES@|Comma-separated list of storage classes to request for new collections|
+
+h2(#examples). Examples
+
+h3(#exec). Using @--exec@
+
+There are a couple of details that are important to understand when you use @--exec@:
+
+* @--exec@ reads all remaining options as the command to run, so it must be the last option you specify. Either end your command arguments (and other options) with a @--@ argument, or specify @--exec@ after your mount point.
+* The command you specify runs from the same directory that you started @arv-mount@ from. To access data inside the mount, you will generally need to pass the path to the mount as an argument.
+
+For example, this generates a recursive listing of all the projects and collections under your home project:
+
+<notextile>
+<pre><code>$ <span class="userinput">arv-mount --home --exec find -type d ArvadosHome -- ArvadosHome</span>
+</code></pre>
+</notextile>
+
+The first @ArvadosHome@ is a path argument to @find@. The second is the mount point argument to @arv-mount@.