`--implicit-dirs` not able to be used in conjunction with `mount -t ...`
paulcjh opened this issue · comments
Describe the issue
The necessity of --implicit-dirs
is outlined in various places but it is not able to be used when mounting with the native mount
option targeting gcsfuse. This makes the scripts provided in following issue #1387.
Steps to reproduce the behavior:
- run
mount -t gcsfuse --implicit-dirs my-bucket local-dir
System (please complete the following information):
- OS: Ubuntu 22.04
Did you try the command like this: sudo mount -t gcsfuse -o implicit_dirs=true my-bucket local-dir
?
Linux mount command takes in _
format, internally we change it as normal gcsfuse command. See here, how gcsfuse handles it the code.
Soon, we will be updating cloud-storage-fuse mount-doc with this use case.
Adding more details to #1705 (comment).. With mount
command, all hyphens(-
s) in the gcsfuse flags should be replaced with undescores (_
s).
Example below:
Wrong usage
sudo mount -t gcsfuse -o implicit-dirs $bucket $mountpath
Error message:
daemonize.Run: readFromProcess: sub-process: mountWithArgs: mountWithStorageHandle: Mount: mount: invalid argument
Correct usage
sudo mount -t gcsfuse -o implicit_dirs $bucket $mountpath
Error message: None
@paulcjh please look at the above comment for solution.
We'll also be adding the same to our documentation.
This has now been documented at GCSFuse cloud documentation .
Hi @paulcjh
I am closing this issue as we've provided a fix and documented this on our official documentation. Feel free to reopen this issue if you need further assistance.
Thanks,
Ashmeen