Visit Jeremy's Blog.
Go Back > Blogs > Bits and Pixels
User Name


Concerning free software, programming, and whatever else I find interesting. Also the blog for my Web site,
Rate this Entry

chironfs and sshfs: "mknod failed accessing..." error

Posted 06-15-2012 at 09:26 PM by hydraMax
Updated 06-16-2012 at 12:04 PM by hydraMax (update)

I thought I'd post this for posterities sake:

chironfs is a nifty fuse-based file system that duplicates a file hierarchy across multiple paths. (Like a file system version of RAID 1.) However, I found that if I tried to use an sshfs mounted directory as one of the paths, chironfs disables the path with the error "mknod failed accessing <path> Permission denied".

The workaround I found was to pass in the following option to sshfs when mounting the sshfs mount point: -o idmap=user. If this is done, chironfs seems to work fine with it.

I dug into the chironfs-1.1.1, and it appears that, before chironfs creates a new file, it first checks the ownership of the parent directory to see if it matches that of its own user, and fails if it doesn't. This of course doesn't work by default with sshfs, because sshfs allows you to create files on the remote machine even though you don't have the same local user name.

No idea why chironfs has the extra check. I thought it was a generally understood rule that programs shouldn't do an extra permissions check before attempting an operation. Just attempt the operation and report an error if it fails.


After trying to create some more files in the virtual mount, I ran across another error, where chironfs tries to chown the files (???), fails, and again disables syncing to the the sshfs directory.
Posted in Uncategorized
Views 921 Comments 0
« Prev     Main     Next »
Total Comments 0




All times are GMT -5. The time now is 03:21 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration