ligurio / unreliablefs

A FUSE-based fault injection filesystem.
https://ligurio.github.io/unreliablefs/unreliablefs.1.html
MIT License
177 stars 9 forks source link

how to set 'nonempty' mount option #105

Open JaneEyreliu opened 2 years ago

JaneEyreliu commented 2 years ago

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 commented 2 years ago

@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 commented 2 years ago

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 commented 2 years ago

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).