3 # This is a wrapper for 'fusefile'
4 # enabling to invoke from standard 'mount' command
5 # as 'mount -t fusefile ./file1 ./mountpoint'
10 echo "mount.fusefile: $@" >&2
15 command="exec fusefile"
16 fake_command
="warnx fusefile"
36 offset
=*|size
=*|mode
=*)
40 my_opts
+=(-$opt_chr "$opt_val")
52 #echo "mount.fusefile: unknown option: -o $opt" >&2
54 fuse_opts
+=(-o "$opt")
55 if [ "${opt:0:7}" = "fsname=" ]
73 echo "mount.fusefile -o OPTIONS FILE MOUNTPOINT
75 rw, ro, writeonly, readappend, appendonly,
76 offset=OFFSET, size=SIZE, mode=MODE, FUSE-options
85 echo "mount.fusefile: unknown option: $1" >&2
92 if [ $isset_fuse_fsname = no
]
94 fuse_opts
+=(-o "fsname=$1")
100 echo "mount.fusefile: too many parameter: $1" >&2
108 $command "$param1" "$param2" $access_mode "${my_opts[@]}" "${fuse_opts[@]}"