9.1-RC3 fusefs-encfs problem ( ls: b: Bad file descriptor )

Joseph Mingrone jrm at ftfl.ca
Wed Dec 19 06:18:35 UTC 2012


On Thu, Dec 6, 2012 at 3:00 AM, Özkan KIRIK <ozkan.kirik at gmail.com> wrote:
> I just installed fusefs-encfs from ports.
> There is something wrong while mounting the fuse.
> The output :
>
> root at host # kldstat
> Id Refs Address            Size     Name
>  1    3 0xffffffff80200000 13e0d58  kernel
>  2    1 0xffffffff81812000 a9bb     fuse.ko
>
> root at host # encfs `pwd`/a `pwd`/b
> The directory "/usr/home/sysadmin/a/" does not exist. Should it be created?
> (y,n) y
> The directory "/usr/home/sysadmin/b" does not exist. Should it be created?
> (y,n) y
> Creating new encrypted volume.
> Please choose from one of the following options:
>  enter "x" for expert configuration mode,
>  enter "p" for pre-configured paranoia mode,
>  anything else, or an empty line will select standard mode.
> ?>
>
> Standard configuration selected.
>
> Configuration finished.  The filesystem to be created has
> the following properties:
> Filesystem cipher: "ssl/aes", version 3:0:2
> Filename encoding: "nameio/block", version 3:0:1
> Key Size: 192 bits
> Block Size: 1024 bytes
> Each file contains 8 byte header with unique IV data.
> Filenames encoded using IV chaining mode.
> File holes passed through to ciphertext.
>
> Now you will need to enter a password for your filesystem.
> You will need to remember this password, as there is absolutely
> no recovery mechanism.  However, the password can be changed
> later using encfsctl.
>
> New Encfs Password:
> Verify Encfs Password:
> root at host #
>
> root at host # mount
> /dev/ada0p2 on / (ufs, local, journaled soft-updates)
> devfs on /dev (devfs, local, multilabel)
> /dev/fuse0 on /usr/home/b (fusefs, local, synchronous)
>
> root at host # cd b
> b: Not a directory.
>
> root at host  # ls b
> ls: b: Bad file descriptor
>
> root at host # umount b
> umount: b: stat: Bad file descriptor
> umount: b: unknown file system
>
> root at host # umount /usr/home/b
> -> has no errors.
>
>
> I tried this on two different machines with 9.1-RC3 amd64.
> How can we solve this problem?
>
> Sincerely,
> Ozkan KIRIK

I have the same problem.  Downgrading sysutils/fusefs-kmod and
sysutils/fusefs-libs as described in the PR linked to below allowed me
to mount again.

http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/173240


More information about the freebsd-stable mailing list