LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-19-2013, 04:20 AM   #1
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
sshfs: rejects some options


I got passwordless sshfs mounting working OK ...
Code:
sshfs charles@rose:/home ~/mnt/rose:home/
... and then set about optimising it but sshfs rejected some options.

The sshfs documentation (man page and --help output, slightly different), groups command line options by the subsystems it uses:
  • iconv
  • module (kernel module?)
  • fuse
  • mount
  • ssh
  • sshfs (itself)
There are a lot of options so I listed the ones I wanted to try by subsystem ...
  • iconv None required
  • module
    -o rellinks
  • fuse
    -o intr
    -o no_remote_lock
  • mount
    -o noatime,nodiratime,noiversion
  • ssh None required (all set in ~/.ssh/config)
  • sshfs
    -o reconnect
... and constructed a command:
Code:
sshfs charles@rose:/home ~/mnt/rose:home/ \
    -o intr \
    -o no_remote_lock \
    -o noatime,nodiratime,noiversion \
    -o reconnect \
    -o rellinks \
Apparently sshfs exits on finding the first options error. Progressively removing the erroneous options generated these errors before the mount worked:
  1. fuse: unknown option `nodiratime'
  2. fuse: unknown option `noiversion'
  3. fuse: unknown option `rellinks'
The first two were not expected because nodiratime and noiversion are listed in the mount man page in the "FILESYSTEM INDEPENDENT MOUNT OPTIONS" section. AIUI that means all file systems support those options ... ?

The rellinks error was not expected because the documentation says rellinks is not for fuse but for the kernel ... ?

Researching sshfs "How to" pages, issue pages, blogs, bug reports and mailing list archives suggests that the problem sshfs options I used are used little or not at all ... ?

Or I have missed something in how to pass these documented options on the command line ... ?

Last edited by catkin; 03-19-2013 at 04:27 AM.
 
Old 03-19-2013, 07:56 AM   #2
jpollard
Senior Member
 
Registered: Dec 2012
Location: Washington DC area
Distribution: Fedora, CentOS, Slackware
Posts: 4,912

Rep: Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513Reputation: 1513
Filesystem independent mount options refers to the native filesystems.

sshfs is a user space, non-native filesystem that doesn't have to implement everything, and in fact it can't.

The "nodiratime" isn't supported because sshfs itself doesn't support directories - it just passes any requested actions off to a remote system, which may or may not implement nodiratime itself. The same applies to the other options you list. The only options sshfs can support are those it uses, and not all of those are applicable to the remote system (such as "reconnect").
 
Old 03-19-2013, 12:45 PM   #3
iqbal51
LQ Newbie
 
Registered: Jul 2011
Posts: 4

Rep: Reputation: 0
I don’t know about your problem. But I suggest to you can help from a software developer.
 
Old 03-21-2013, 04:43 AM   #4
catkin
LQ 5k Club
 
Registered: Dec 2008
Location: Tamil Nadu, India
Distribution: Debian
Posts: 8,578

Original Poster
Blog Entries: 31

Rep: Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208Reputation: 1208
Thanks for the clarifying perspective, jpollard

I have written to the OpenSSH user mailing list about the -o rellinks error and potential documentation enhancement about the mount options.

Incidentally, since starting the thread I discovered that bash command prompt path completion does not work on an sshfs file system. For example cd <sshfs mount point>/ followed by tab and tab does not result in a list of further path components as it does for common file systems.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
spamassassin - block ip after several rejects t0bias Linux - Server 1 04-11-2008 12:53 PM
Installation rejects IP address bluethumb Red Hat 3 04-19-2007 07:39 AM
Affero rejects user? SlackerLX General 1 01-01-2005 10:15 PM
SAMBA rejects client xp login azmadar Linux - Newbie 2 09-14-2004 11:08 AM
xinetd rejects connections? ninen Linux - Software 2 06-06-2004 11:40 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:53 AM.

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