19 Jul 14:00
Re: sshfs 2.3 gives Input/output error
Miklos Szeredi <miklos <at> szeredi.hu>
2011-07-19 12:00:36 GMT
2011-07-19 12:00:36 GMT
Darin McBride <darin.mcbride <at> shaw.ca> writes: > On July 6, 2011 9:36:14 PM Darin McBride wrote: >> After trying 2.3, I'm finding that one mount point that I regularly make is >> giving: >> >> $ ls /ihome >> ls: cannot access /ihome: Input/output error >> >> whereas another mountpoint on the same server works fine. Both mount >> points work just fine with 2.2, simultaneously. >> >> Mount command: >> >> ./sshfs -o transform_symlinks -o allow_root root <at> server:/ihome /ihome >> >> The other mount point is exactly the same, except /ihome changes to another >> directory. >> >> Note that on the server, /ihome is a symlink to /home. Whereas this worked >> with 2.2, this seems a regression with 2.3 (or is that a bugfix that >> shouldn't have worked in 2.2?). I'm not sure this is the problem, but it >> seems suspicious. > > Can anyone else reproduce? Is there a better place to report bugs > than here? I can't find anywhere on sourceforge to track bugs for > this project. Thanks for the bug report. I can reproduce this. The solution is to add an ending slash to the remote path: ./sshfs -o transform_symlinks -o allow_root root <at> server:/ihome/ /ihome The following patch fixes the I/O error, instead it will fail at mount time, which I think is the correct behavior. Thanks, Miklos --- diff --git a/sshfs.c b/sshfs.c index 22bda6b..d26e2c1 100644 --- a/sshfs.c +++ b/sshfs.c @@ -1525,7 +1525,7 @@ static int sftp_check_root(const char *base_path) buf_init(&buf, 0); buf_add_string(&buf, remote_dir); buf_to_iov(&buf, &iov[0]); - if (sftp_send_iov(SSH_FXP_STAT, id, iov, 1) == -1) + if (sftp_send_iov(SSH_FXP_LSTAT, id, iov, 1) == -1) goto out; buf_clear(&buf); if (sftp_read(&type, &buf) == -1) ------------------------------------------------------------------------------ Magic Quadrant for Content-Aware Data Loss Prevention Research study explores the data loss prevention market. Includes in-depth analysis on the changes within the DLP market, and the criteria used to evaluate the strengths and weaknesses of these DLP solutions. http://www.accelacomm.com/jaw/sfnl/114/51385063/
RSS Feed