Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

how to set 'nonempty' mount option #105

Open
JaneEyreliu opened this issue Mar 16, 2022 · 3 comments
Open

how to set 'nonempty' mount option #105

JaneEyreliu opened this issue Mar 16, 2022 · 3 comments
Labels
bug Something isn't working needs feedback

Comments

@JaneEyreliu
Copy link

hi man,i am so appreciate you project,but when i use it,i get the following warn:
starting FUSE filesystem unreliablefs
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
could you tell me how to use ?

@ligurio
Copy link
Owner

ligurio commented Mar 17, 2022

@JaneEyreliu Hi! If I get it right, you want to keep option -basedir=STRING empty, right?
It would be better to provide a command line that you are using and output after execution.

@JaneEyreliu
Copy link
Author

JaneEyreliu commented Mar 17, 2022

Hi,that‘s not true.
here is the command line,and the output
[root@master build]# ./unreliablefs /usr/local/hadoop-3.3.1/dfs/name/current -basedir=/usr/local/hadoop-3.3.1/dfs/name -seed=1618680646
random seed = 1618680646
read configuration /usr/local/hadoop-3.3.1/dfs/name/unreliablefs.conf
starting FUSE filesystem unreliablefs
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the 'nonempty' mount option
the question is how to keep the 'nonempty' mount option

@ligurio
Copy link
Owner

ligurio commented Mar 18, 2022

With your command line it works for me:

sergeyb@pony:~/sources/unreliablefs$ mkdir base_dir
sergeyb@pony:~/sources/unreliablefs$ mkdir mount_dir
sergeyb@pony:~/sources/unreliablefs$ ./unreliablefs $(pwd)/mount_dir -basedir=$(pwd)/base_dir -seed=1618680646
random seed = 1618680646
read configuration /home/sergeyb/sources/unreliablefs/base_dir/unreliablefs.conf
starting FUSE filesystem unreliablefs
sergeyb@pony:~/sources/unreliablefs$ ./unreliablefs --version
unreliablefs version 0.1
FUSE library version: 2.9.9
fusermount version: 2.9.9
using FUSE kernel interface version 7.19
$

Please, share unreliablefs version (unreliablefs --version) and OS version.

It is worth to run unreliablefs under strace (let me know if you need assistance).

@ligurio ligurio added needs feedback bug Something isn't working labels Mar 18, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs feedback
Projects
None yet
Development

No branches or pull requests

2 participants