listing files

Help
Anonymous
2003-05-01
2003-06-14
  • Anonymous - 2003-05-01

    I've got with LFS kernel 2.4.20.
    installing lufs 0.95 with kernel support work. there was a compile error. then i applied the kernel patch (2.4.19). recompiled the kernel, tried to compile lufs without kernel support. didn't work either. but recompiling it with kernel support worked and i could mount a ssh and local partition. but i can't list files in those directories. both hang. any help ?

     
    • Florin Malita

      Florin Malita - 2003-05-27

      try using "-c 1". or the CVS version.

      i'm especially intrested whether the CVS version fixes the problem.

       
    • Anonymous - 2003-05-27

      tried lufs2

      nicolas:/mnt/dav$ ls -l
      ls: .: Stale NFS file handle
      nicolas:/mnt/dav$ ls -l
      ls: .: Stale NFS file handle
      nicolas:/mnt/dav$ ls -l
      total 145
      drwxr-xr-x    2 2        sys          4096 May 15 00:20 bin
      drwxr-xr-x    4 2        sys          1024 Jan  9 18:11 boot
      drwxr-xr-x    6 2        sys         86016 May 27 09:41 dev
      drwxr-xr-x   25 2        sys          4096 May 27 11:15 etc
      drwxr-xr-x    3 2        sys          4096 Dec 25 00:05 home
      drwxr-xr-x    3 2        sys          4096 Feb  6 21:43 lib
      drwx------    2 2        sys         16384 Dec 24 18:14 lost+found
      drwxr-xr-x    8 2        sys          4096 Mar 20 15:33 mnt
      drwxr-xr-x   16 2        sys          4096 May 24 14:12 opt
      dr-xr-xr-x   86 2        sys             0 May 27 09:41 proc
      drwxr-x---   12 2        sys          4096 May 25 18:09 root
      drwxr-xr-x    2 2        sys          4096 May 27 11:13 sbin
      drwxrwxrwt   13 2        sys          4096 May 27 11:15 tmp
      drwxr-xr-x   18 2        sys          4096 Apr 19 01:30 usr
      drwxr-xr-x   13 2        sys          4096 Apr 25 23:32 var
      nicolas:/mnt/dav$ ls -l
      total 0
      nicolas:/mnt/dav$ ls -l
      total 0
      nicolas:/mnt/dav$ ls -l
      total 145
      drwxr-xr-x    2 2        sys          4096 May 15 00:20 bin
      drwxr-xr-x    4 2        sys          1024 Jan  9 18:11 boot
      drwxr-xr-x    6 2        sys         86016 May 27 09:41 dev
      drwxr-xr-x   25 2        sys          4096 May 27 11:15 etc
      drwxr-xr-x    3 2        sys          4096 Dec 25 00:05 home
      drwxr-xr-x    3 2        sys          4096 Feb  6 21:43 lib
      drwx------    2 2        sys         16384 Dec 24 18:14 lost+found
      drwxr-xr-x    8 2        sys          4096 Mar 20 15:33 mnt
      drwxr-xr-x   16 2        sys          4096 May 24 14:12 opt
      dr-xr-xr-x   86 2        sys             0 May 27 09:41 proc
      drwxr-x---   12 2        sys          4096 May 25 18:09 root
      drwxr-xr-x    2 2        sys          4096 May 27 11:13 sbin
      drwxrwxrwt   13 2        sys          4096 May 27 11:15 tmp
      drwxr-xr-x   18 2        sys          4096 Apr 19 01:30 usr
      drwxr-xr-x   13 2        sys          4096 Apr 25 23:32 var
      nicolas:/mnt/dav$

      now with debug messages compiled:

      hope its not too long
      [6a6b](lu_opt_parse) domain not found, creating...
      [6a6b](lu_opt_parse) option: fs=sshfs
      [6a6b](lu_opt_parse) option with parameter
      [6a6b](lu_opt_parse) option: host=localhost
      [6a6b](lu_opt_parse) option with parameter
      [6a6b](lu_opt_parse) option: username=root
      [6a6b](lu_opt_parse) option with parameter
      [6a6b](lu_opt_parse) option: root=/
      [6a6b](lu_opt_parse) option with parameter
      [6a6b](lu_opt_loadcfg) loading config from /etc/lufsd.conf
      [6a6b](lu_opt_loadcfg) class: #LUFSD#
      [6a6b](lu_opt_loadcfg) key: #DirCacheTTL#
      [6a6b](lu_opt_loadcfg) val: #20#
      [6a6b](lu_opt_loadcfg) class not found, creating...
      [6a6b](lu_opt_loadcfg) class: #LUFSD#
      [6a6b](lu_opt_loadcfg) key: #DirCacheEntries#
      [6a6b](lu_opt_loadcfg) val: #6#
      [6a6b](find_domain) domain found
      [6a6b](lu_opt_loadcfg) class: #FTPFS#
      [6a6b](lu_opt_loadcfg) key: #DataConnectionMode#
      [6a6b](lu_opt_loadcfg) val: #Passive#
      [6a6b](lu_opt_loadcfg) class not found, creating...
      [6a6b](lu_opt_loadcfg) class: #FTPFS#
      [6a6b](lu_opt_loadcfg) key: #RWTimeout#
      [6a6b](lu_opt_loadcfg) val: #10#
      [6a6b](find_domain) domain found
      [6a6b](lu_opt_loadcfg) class: #GNETFS#
      [6a6b](lu_opt_loadcfg) key: #KnownPeers#
      [6a6b](lu_opt_loadcfg) val: #10#
      [6a6b](lu_opt_loadcfg) class not found, creating...
      [6a6b](lu_opt_loadcfg) class: #GNETFS#
      [6a6b](lu_opt_loadcfg) key: #Host1#
      [6a6b](lu_opt_loadcfg) val: #connect1.gnutellanet.com:6346#
      [6a6b](find_domain) domain found
      [6a6b](lu_opt_loadcfg) class: #GNETFS#
      [6a6b](lu_opt_loadcfg) key: #Host2#
      [6a6b](lu_opt_loadcfg) val: #connect2.gnutellanet.com:6346#
      [6a6b](find_domain) domain found
      [6a6b](lu_opt_loadcfg) class: #GNETFS#
      [6a6b](lu_opt_loadcfg) key: #Host3#
      [6a6b](lu_opt_loadcfg) val: #connect3.gnutellanet.com:6346#
      [6a6b](find_domain) domain found
      [6a6b](lu_opt_loadcfg) class: #GNETFS#
      [6a6b](lu_opt_loadcfg) key: #Host4#
      [6a6b](lu_opt_loadcfg) val: #connect4.gnutellanet.com:6346#
      [6a6b](find_domain) domain found
      [6a6b](lu_fsctl_create) creating fs_ctl
      [6a6b](lu_cache_create) creating dir cache...
      [6a6b](lu_opt_getchar) retrieving LUFSD::DirCacheTTL
      [6a6b](find_domain) domain found
      [6a6b](lu_opt_getchar) key found
      [6a6b](lu_opt_getchar) retrieving MOUNT::dir_cache_ttl
      [6a6b](find_domain) domain found
      [6a6b](lu_opt_getchar) key not found
      [6a6b](lu_opt_getchar) retrieving LUFSD::DirCacheEntries
      [6a6b](find_domain) domain found
      [6a6b](lu_opt_getchar) key found
      [6a6b](lu_opt_getchar) retrieving MOUNT::dir_cache_entries
      [6a6b](find_domain) domain found
      [6a6b](lu_opt_getchar) key not found
      [6a6b](lu_cache_create) entries: 6, ttl: 20
      [6a6b](lu_opt_getchar) retrieving MOUNT::fs
      [6a6b](find_domain) domain found
      [6a6b](lu_opt_getchar) key found
      [6a6b](get_filesystem) trying to load liblufs-sshfs.so
      [6a6b](get_filesystem) lib opened
      [6a6b](get_filesystem) file system loaded
      [6a6b](lu_opt_getchar) retrieving MOUNT::username
      [6a6b](find_domain) domain found
      [6a6b](lu_opt_getchar) key found
      [6a6b](lu_opt_getchar) retrieving MOUNT::username
      [6a6b](find_domain) domain found
      [6a6b](lu_opt_getchar) key found
      [6a6b](lu_opt_getchar) retrieving MOUNT::host
      [6a6b](find_domain) domain found
      [6a6b](lu_opt_getchar) key found
      [6a6b](SSHFS)in constructor
      [6a6b](SConnection)in constructor
      [6a6b](do_mount)do_mount
      [6a6b](lu_opt_getchar) retrieving MOUNT::port
      [6a6b](find_domain) domain found
      [6a6b](lu_opt_getchar) key not found
      [6a6b](lu_opt_getchar) retrieving MOUNT::username
      [6a6b](find_domain) domain found
      [6a6b](lu_opt_getchar) key found
      [6a6b](lu_opt_getchar) retrieving MOUNT::host
      [6a6b](find_domain) domain found
      [6a6b](lu_opt_getchar) key found
      [6a6b](connect)attempting to connect to localhost:16 as root
      [6a6b](connect)args[0]=/usr/bin/ssh
      [6a6b](connect)args[1]=-oFallBackToRsh no
      [6a6b](connect)args[2]=-oForwardX11 no
      [6a6b](connect)args[3]=-oForwardAgent no
      [6a6b](connect)args[4]=-oClearAllForwardings yes
      [6a6b](connect)args[5]=-oProtocol 2
      [6a6b](connect)args[6]=-p22
      [6a6b](connect)args[7]=-lroot
      [6a6b](connect)args[8]=-s
      [6a6b](connect)args[9]=localhost
      [6a6b](connect)args[a]=sftp
      [6a6c](connect)child launching ssh...
      [6a6b](send_packet)sending packet...
      [6a6b](recv_packet)receiving packet...
      root@localhost's password:
      [6a6b](ntoh)fixing long
      [6a6b](ntoh)fixing long
      [6a6b](connect)server protocol V3
      [6a6b](load_credentials) loading remote credentials for root
      [6a6b](do_open)do_open
      [6a6b](find_handle)looking for /etc/passwd, size=0
      [6a6b](open)ssh_open: /etc/passwd, mode: 0
      [6a6b](open)***READ
      [6a6b](send_packet)sending packet...
      [6a6b](recv_packet)receiving packet...
      [6a6b](ntoh)fixing long
      [6a6b](do_open)1 files still opened.
      [6a6b](do_read)do_read
      [6a6b](find_handle)looking for /etc/passwd, size=1
      [6a6b](find_handle)name: /etc/passwd
      [6a6b](find_handle)handle found
      [6a6b](read)ssh_read: 0, 3b9
      [6a6b](read)data not in cache, reading...
      [6a6b](hton)fixing quad
      [6a6b](send_packet)sending packet...
      [6a6b](recv_packet)receiving packet...
      [6a6b](ntoh)fixing long
      [6a6b](read)e1 bytes read in cache
      [6a6b](do_release)do_release
      [6a6b](find_handle)looking for /etc/passwd, size=1
      [6a6b](find_handle)name: /etc/passwd
      [6a6b](find_handle)handle found
      [6a6b](send_packet)sending packet...
      [6a6b](recv_packet)receiving packet...
      [6a6b](ntoh)fixing long
      [6a6b](ntoh)fixing long
      [6a6b](ntoh)fixing long
      [6a6b](do_release)file closed.
      [6a6b](do_release)0 files still opened.
      [6a6b](do_open)do_open
      [6a6b](find_handle)looking for /etc/group, size=0
      [6a6b](open)ssh_open: /etc/group, mode: 0
      [6a6b](open)***READ
      [6a6b](send_packet)sending packet...
      [6a6b](recv_packet)receiving packet...
      [6a6b](ntoh)fixing long
      [6a6b](do_open)1 files still opened.
      [6a6b](do_read)do_read
      [6a6b](find_handle)looking for /etc/group, size=1
      [6a6b](find_handle)name: /etc/group
      [6a6b](find_handle)handle found
      [6a6b](read)ssh_read: 0, 3bb
      [6a6b](read)data not in cache, reading...
      [6a6b](hton)fixing quad
      [6a6b](send_packet)sending packet...
      [6a6b](recv_packet)receiving packet...
      [6a6b](ntoh)fixing long
      [6a6b](read)c0 bytes read in cache
      [6a6b](do_release)do_release
      [6a6b](find_handle)looking for /etc/group, size=1
      [6a6b](find_handle)name: /etc/group
      [6a6b](find_handle)handle found
      [6a6b](send_packet)sending packet...
      [6a6b](recv_packet)receiving packet...
      [6a6b](ntoh)fixing long
      [6a6b](ntoh)fixing long
      [6a6b](ntoh)fixing long
      [6a6b](do_release)file closed.
      [6a6b](do_release)0 files still opened.
      [6a6b](lu_fsctl_mount) credentials loaded.
      [6a6b](tempsock) trying address /tmp/lufsd1175965060
      [6a6b](main) starting filesystem master at /tmp/lufsd1175965060
      [6a72](lu_opt_getchar) retrieving MOUNT::quiet
      [6a72](find_domain) domain found
      [6a72](lu_opt_getchar) key not found
      [6a73](main) executing lufsmnt /mnt/dav fs=sshfs,host=localhost,username=root,root=/,server_socket=/tmp/lufsd1175965060,server_pid=27250
      [6a72](lu_fsctl_run) a client process connected.
      [6a72](lu_fsctl_run) using already mounted filesystem...
      [6a76](thread_launcher) thread created
      [6a76](handle_fs) entering I/O loop...
      [6a76](generic_stat) stat /
      [6a76](lu_cache_lookup_file) dir: /, file: .
      [6a76](lu_cache_lookup) looking up . in dir /
      [6a76](search) search / in bucket 0, size=0
      [6a76](search) dir not found
      [6a76](generic_stat) lookup failed on master
      [6a76](do_stat)do_stat /.
      [6a76](stat)ssh_stat: /.
      [6a76](send_packet)sending packet...
      [6a76](recv_packet)receiving packet...
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)size: 1000
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)uid: 3e8, gid: 66
      [6a76](attr2fattr)mode: 40755
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)atime: 3ed34be5, mtime: 3ebc4d13
      [6a6b](main) mount succeded
      root:~#
      root:~# cd /mnt/
      root:/mnt# ls -l dav
      [6a72](lu_fsctl_run) a client process connected.
      [6a72](lu_opt_getchar) retrieving MOUNT::username
      [6a72](find_domain) domain found
      [6a72](lu_opt_getchar) key found
      [6a72](lu_opt_getchar) retrieving MOUNT::host
      [6a72](find_domain) domain found
      [6a72](lu_opt_getchar) key found
      [6a72](SSHFS)in constructor
      [6a72](SConnection)in constructor
      [6a79](thread_launcher) thread created
      [6a79](handle_fs) connecting the slot...
      [6a79](do_mount)do_mount
      [6a79](lu_opt_getchar) retrieving MOUNT::port
      [6a79](find_domain) domain found
      [6a79](lu_opt_getchar) key not found
      [6a79](lu_opt_getchar) retrieving MOUNT::username
      [6a79](find_domain) domain found
      [6a79](lu_opt_getchar) key found
      [6a79](lu_opt_getchar) retrieving MOUNT::host
      [6a79](find_domain) domain found
      [6a79](lu_opt_getchar) key found
      [6a79](connect)attempting to connect to localhost:16 as root
      [6a79](connect)args[0]=/usr/bin/ssh
      [6a79](connect)args[1]=-oFallBackToRsh no
      [6a79](connect)args[2]=-oForwardX11 no
      [6a79](connect)args[3]=-oForwardAgent no
      [6a79](connect)args[4]=-oClearAllForwardings yes
      [6a79](connect)args[5]=-oProtocol 2
      [6a79](connect)args[6]=-p22
      [6a79](connect)args[7]=-lroot
      [6a79](connect)args[8]=-s
      [6a79](connect)args[9]=localhost
      [6a79](connect)args[a]=sftp
      [6a79](send_packet)sending packet...
      [6a79](recv_packet)receiving packet...
      [6a7a](connect)child launching ssh...
      [6a79](lu_atomic_read) read call failed: Success
      [6a79](connect)failed to read version!
      [6a79](handle_fs) couldn't connect!
      [6a79](SSHFS)in destructor
      [6a79](SConnection)in destructor
      [6a72](lu_fsctl_run) a client process connected.
      [6a72](lu_opt_getchar) retrieving MOUNT::username
      [6a72](find_domain) domain found
      [6a72](lu_opt_getchar) key found
      [6a72](lu_opt_getchar) retrieving MOUNT::host
      [6a72](find_domain) domain found
      [6a72](lu_opt_getchar) key found
      [6a72](SSHFS)in constructor
      [6a72](SConnection)in constructor
      [6a79](thread_launcher) thread exiting...
      [6a7e](thread_launcher) thread created
      [6a7e](handle_fs) connecting the slot...
      [6a7e](do_mount)do_mount
      [6a7e](lu_opt_getchar) retrieving MOUNT::port
      [6a7e](find_domain) domain found
      [6a7e](lu_opt_getchar) key not found
      [6a7e](lu_opt_getchar) retrieving MOUNT::username
      [6a7e](find_domain) domain found
      [6a7e](lu_opt_getchar) key found
      [6a7e](lu_opt_getchar) retrieving MOUNT::host
      [6a7e](find_domain) domain found
      [6a7e](lu_opt_getchar) key found
      [6a7e](connect)attempting to connect to localhost:16 as root
      [6a7e](connect)args[0]=/usr/bin/ssh
      [6a7e](connect)args[1]=-oFallBackToRsh no
      [6a7e](connect)args[2]=-oForwardX11 no
      [6a7e](connect)args[3]=-oForwardAgent no
      [6a7e](connect)args[4]=-oClearAllForwardings yes
      [6a7e](connect)args[5]=-oProtocol 2
      [6a7e](connect)args[6]=-p22
      [6a7e](connect)args[7]=-lroot
      [6a7e](connect)args[8]=-s
      [6a7e](connect)args[9]=localhost
      [6a7e](connect)args[a]=sftp
      [6a7e](send_packet)sending packet...
      [6a7e](recv_packet)receiving packet...
      [6a7f](connect)child launching ssh...
      [6a7e](lu_atomic_read) read call failed: Success
      [6a7e](connect)failed to read version!
      [6a7e](handle_fs) couldn't connect!
      [6a7e](SSHFS)in destructor
      [6a7e](SConnection)in destructor
      [6a72](lu_fsctl_run) a client process connected.
      [6a72](lu_opt_getchar) retrieving MOUNT::username
      [6a72](find_domain) domain found
      [6a72](lu_opt_getchar) key found
      [6a72](lu_opt_getchar) retrieving MOUNT::host
      [6a72](find_domain) domain found
      [6a72](lu_opt_getchar) key found
      [6a72](SSHFS)in constructor
      [6a72](SConnection)in constructor
      [6a83](thread_launcher) thread created
      [6a83](handle_fs) connecting the slot...
      [6a83](do_mount)do_mount
      [6a83](lu_opt_getchar) retrieving MOUNT::port
      [6a83](find_domain) domain found
      [6a83](lu_opt_getchar) key not found
      [6a83](lu_opt_getchar) retrieving MOUNT::username
      [6a83](find_domain) domain found
      [6a83](lu_opt_getchar) key found
      [6a83](lu_opt_getchar) retrieving MOUNT::host
      [6a83](find_domain) domain found
      [6a83](lu_opt_getchar) key found
      [6a83](connect)attempting to connect to localhost:16 as root
      [6a83](connect)args[0]=/usr/bin/ssh
      [6a83](connect)args[1]=-oFallBackToRsh no
      [6a83](connect)args[2]=-oForwardX11 no
      [6a83](connect)args[3]=-oForwardAgent no
      [6a83](connect)args[4]=-oClearAllForwardings yes
      [6a83](connect)args[5]=-oProtocol 2
      [6a83](connect)args[6]=-p22
      [6a83](connect)args[7]=-lroot
      [6a83](connect)args[8]=-s
      [6a83](connect)args[9]=localhost
      [6a83](connect)args[a]=sftp
      [6a83](send_packet)sending packet...
      [6a83](recv_packet)receiving packet...
      [6a7e](thread_launcher) thread exiting...
      [6a84](connect)child launching ssh...
      [6a83](lu_atomic_read) read call failed: Success
      [6a83](connect)failed to read version!
      [6a83](handle_fs) couldn't connect!
      [6a83](SSHFS)in destructor
      [6a83](SConnection)in destructor
      total 0
      root:/mnt# [6a83](thread_launcher) thread exiting...
      root:/mnt# ls -l dav
      [6a72](lu_fsctl_run) a client process connected.
      [6a72](lu_opt_getchar) retrieving MOUNT::username
      [6a72](find_domain) domain found
      [6a72](lu_opt_getchar) key found
      [6a72](lu_opt_getchar) retrieving MOUNT::host
      [6a72](find_domain) domain found
      [6a72](lu_opt_getchar) key found
      [6a72](SSHFS)in constructor
      [6a72](SConnection)in constructor
      [6a8a](thread_launcher) thread created
      [6a8a](handle_fs) connecting the slot...
      [6a8a](do_mount)do_mount
      [6a8a](lu_opt_getchar) retrieving MOUNT::port
      [6a8a](find_domain) domain found
      [6a8a](lu_opt_getchar) key not found
      [6a8a](lu_opt_getchar) retrieving MOUNT::username
      [6a8a](find_domain) domain found
      [6a8a](lu_opt_getchar) key found
      [6a8a](lu_opt_getchar) retrieving MOUNT::host
      [6a8a](find_domain) domain found
      [6a8a](lu_opt_getchar) key found
      [6a8a](connect)attempting to connect to localhost:16 as root
      [6a8a](connect)args[0]=/usr/bin/ssh
      [6a8a](connect)args[1]=-oFallBackToRsh no
      [6a8a](connect)args[2]=-oForwardX11 no
      [6a8a](connect)args[3]=-oForwardAgent no
      [6a8a](connect)args[4]=-oClearAllForwardings yes
      [6a8a](connect)args[5]=-oProtocol 2
      [6a8a](connect)args[6]=-p22
      [6a8a](connect)args[7]=-lroot
      [6a8a](connect)args[8]=-s
      [6a8a](connect)args[9]=localhost
      [6a8a](connect)args[a]=sftp
      [6a8a](send_packet)sending packet...
      [6a8a](recv_packet)receiving packet...
      [6a8b](connect)child launching ssh...
      [6a8a](lu_atomic_read) read call failed: Success
      [6a8a](connect)failed to read version!
      [6a8a](handle_fs) couldn't connect!
      [6a8a](SSHFS)in destructor
      [6a8a](SConnection)in destructor
      [6a8a](thread_launcher) thread exiting...
      [6a72](lu_fsctl_run) a client process connected.
      [6a72](lu_opt_getchar) retrieving MOUNT::username
      [6a72](find_domain) domain found
      [6a72](lu_opt_getchar) key found
      [6a72](lu_opt_getchar) retrieving MOUNT::host
      [6a72](find_domain) domain found
      [6a72](lu_opt_getchar) key found
      [6a72](SSHFS)in constructor
      [6a72](SConnection)in constructor
      [6a8f](thread_launcher) thread created
      [6a8f](handle_fs) connecting the slot...
      [6a8f](do_mount)do_mount
      [6a8f](lu_opt_getchar) retrieving MOUNT::port
      [6a8f](find_domain) domain found
      [6a8f](lu_opt_getchar) key not found
      [6a8f](lu_opt_getchar) retrieving MOUNT::username
      [6a8f](find_domain) domain found
      [6a8f](lu_opt_getchar) key found
      [6a8f](lu_opt_getchar) retrieving MOUNT::host
      [6a8f](find_domain) domain found
      [6a8f](lu_opt_getchar) key found
      [6a8f](connect)attempting to connect to localhost:16 as root
      [6a8f](connect)args[0]=/usr/bin/ssh
      [6a8f](connect)args[1]=-oFallBackToRsh no
      [6a8f](connect)args[2]=-oForwardX11 no
      [6a8f](connect)args[3]=-oForwardAgent no
      [6a8f](connect)args[4]=-oClearAllForwardings yes
      [6a8f](connect)args[5]=-oProtocol 2
      [6a8f](connect)args[6]=-p22
      [6a8f](connect)args[7]=-lroot
      [6a8f](connect)args[8]=-s
      [6a8f](connect)args[9]=localhost
      [6a8f](connect)args[a]=sftp
      [6a8f](send_packet)sending packet...
      [6a8f](recv_packet)receiving packet...
      [6a90](connect)child launching ssh...
      [6a8f](lu_atomic_read) read call failed: Success
      [6a8f](connect)failed to read version!
      [6a8f](handle_fs) couldn't connect!
      [6a8f](SSHFS)in destructor
      [6a8f](SConnection)in destructor
      [6a72](lu_fsctl_run) a client process connected.
      [6a72](lu_opt_getchar) retrieving MOUNT::username
      [6a72](find_domain) domain found
      [6a72](lu_opt_getchar) key found
      [6a72](lu_opt_getchar) retrieving MOUNT::host
      [6a72](find_domain) domain found
      [6a72](lu_opt_getchar) key found
      [6a72](SSHFS)in constructor
      [6a72](SConnection)in constructor
      [6a94](thread_launcher) thread created
      [6a94](handle_fs) connecting the slot...
      [6a94](do_mount)do_mount
      [6a94](lu_opt_getchar) retrieving MOUNT::port
      [6a94](find_domain) domain found
      [6a94](lu_opt_getchar) key not found
      [6a94](lu_opt_getchar) retrieving MOUNT::username
      [6a94](find_domain) domain found
      [6a94](lu_opt_getchar) key found
      [6a94](lu_opt_getchar) retrieving MOUNT::host
      [6a94](find_domain) domain found
      [6a94](lu_opt_getchar) key found
      [6a94](connect)attempting to connect to localhost:16 as root
      [6a94](connect)args[0]=/usr/bin/ssh
      [6a94](connect)args[1]=-oFallBackToRsh no
      [6a94](connect)args[2]=-oForwardX11 no
      [6a94](connect)args[3]=-oForwardAgent no
      [6a94](connect)args[4]=-oClearAllForwardings yes
      [6a94](connect)args[5]=-oProtocol 2
      [6a94](connect)args[6]=-p22
      [6a94](connect)args[7]=-lroot
      [6a94](connect)args[8]=-s
      [6a94](connect)args[9]=localhost
      [6a94](connect)args[a]=sftp
      [6a94](send_packet)sending packet...
      [6a94](recv_packet)receiving packet...
      [6a8f](thread_launcher) thread exiting...
      [6a95](connect)child launching ssh...
      [6a94](lu_atomic_read) read call failed: Success
      [6a94](connect)failed to read version!
      [6a94](handle_fs) couldn't connect!
      [6a94](SSHFS)in destructor
      [6a94](SConnection)in destructor
      total 0
      root:/mnt# [6a94](thread_launcher) thread exiting...
      root:/mnt#
      root:/mnt# ls -l dav
      [6a76](generic_readdir) readdir /, offset 2
      [6a76](lu_cache_readdir) reading directory /
      [6a76](search) search / in bucket 0, size=0
      [6a76](search) dir not found
      [6a76](lu_cache_readdir) out
      [6a76](lu_cache_mkdir) create dir /
      [6a76](do_readdir)do_readdir
      [6a76](opendir)ssh_opendir: /
      [6a76](send_packet)sending packet...
      [6a76](recv_packet)receiving packet...
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](opendir)id=7, slen=4
      [6a76](send_packet)sending packet...
      [6a76](recv_packet)receiving packet...
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](do_readdir)got 11 names
      [6a76](attr2fattr)size: 1000
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)uid: 3e8, gid: 66
      [6a76](attr2fattr)mode: 40755
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)atime: 3ed34cb9, mtime: 3ebc4d13
      [6a76](lname2fattr)nlink: 17
      [6a76](lu_cache_add2dir) adding .->(null) to /
      [6a76](do_readdir)fname: .
      [6a76](do_readdir)laname: drwxr-xr-x   17 smmsp    users        4096 May 10 00:51 .
      [6a76](attr2fattr)size: 1000
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)uid: 3e8, gid: 66
      [6a76](attr2fattr)mode: 40755
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)atime: 3ed34cb9, mtime: 3ebc4d13
      [6a76](lname2fattr)nlink: 17
      [6a76](lu_cache_add2dir) adding ..->(null) to /
      [6a76](do_readdir)fname: ..
      [6a76](do_readdir)laname: drwxr-xr-x   17 smmsp    users        4096 May 10 00:51 ..
      [6a76](attr2fattr)size: 4000
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)uid: 0, gid: 0
      [6a76](attr2fattr)mode: 40700
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)atime: 3ecf7d23, mtime: 3e08a416
      [6a76](lname2fattr)nlink: 2
      [6a76](lu_cache_add2dir) adding lost+found->(null) to /
      [6a76](do_readdir)fname: lost+found
      [6a76](do_readdir)laname: drwx------    2 root     root        16384 Dec 24 18:14 lost+found
      [6a76](attr2fattr)size: 400
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)uid: 0, gid: 0
      [6a76](attr2fattr)mode: 40755
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)atime: 3ecf7e87, mtime: 3e1dbb37
      [6a76](lname2fattr)nlink: 4
      [6a76](lu_cache_add2dir) adding boot->(null) to /
      [6a76](do_readdir)fname: boot
      [6a76](do_readdir)laname: drwxr-xr-x    4 root     root         1024 Jan  9 18:11 boot
      [6a76](attr2fattr)size: 1000
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)uid: 3ed, gid: 67
      [6a76](attr2fattr)mode: 40755
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)atime: 3ed1024f, mtime: 3ed34c2d
      [6a76](lname2fattr)nlink: 25
      [6a76](lu_cache_add2dir) adding etc->(null) to /
      [6a76](do_readdir)fname: etc
      [6a76](do_readdir)laname: drwxr-xr-x   25 nobody   103          4096 May 27 11:29 etc
      [6a76](attr2fattr)size: 1000
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)uid: 0, gid: 0
      [6a76](attr2fattr)mode: 40755
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)atime: 3ed34c18, mtime: 3ec2dd54
      [6a76](lname2fattr)nlink: 2
      [6a76](lu_cache_add2dir) adding bin->(null) to /
      [6a76](do_readdir)fname: bin
      [6a76](do_readdir)laname: drwxr-xr-x    2 root     root         4096 May 15 00:20 bin
      [6a76](attr2fattr)size: 15000
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)uid: 0, gid: 0
      [6a76](attr2fattr)mode: 40755
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)atime: 3ecf7e87, mtime: 3ed332cd
      [6a76](lname2fattr)nlink: 6
      [6a76](lu_cache_add2dir) adding dev->(null) to /
      [6a76](do_readdir)fname: dev
      [6a76](do_readdir)laname: drwxr-xr-x    6 root     root        86016 May 27 09:41 dev
      [6a76](attr2fattr)size: 1000
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)uid: 0, gid: 0
      [6a76](attr2fattr)mode: 40755
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)atime: 3ed3447a, mtime: 3e08f64e
      [6a76](lname2fattr)nlink: 3
      [6a76](lu_cache_add2dir) adding home->(null) to /
      [6a76](do_readdir)fname: home
      [6a76](do_readdir)laname: drwxr-xr-x    3 root     root         4096 Dec 25 00:05 home
      [6a76](attr2fattr)size: 1000
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)uid: 0, gid: 0
      [6a76](attr2fattr)mode: 40755
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)atime: 3ed34b76, mtime: 3e42d6f2
      [6a76](lname2fattr)nlink: 3
      [6a76](lu_cache_add2dir) adding lib->(null) to /
      [6a76](do_readdir)fname: lib
      [6a76](do_readdir)laname: drwxr-xr-x    3 root     root         4096 Feb  6 21:43 lib
      [6a76](attr2fattr)size: 1000
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)uid: 0, gid: 0
      [6a76](attr2fattr)mode: 40755
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)atime: 3ed34c83, mtime: 3e79df5e
      [6a76](lname2fattr)nlink: 8
      [6a76](lu_cache_add2dir) adding mnt->(null) to /
      [6a76](do_readdir)fname: mnt
      [6a76](do_readdir)laname: drwxr-xr-x    8 root     root         4096 Mar 20 15:33 mnt
      [6a76](attr2fattr)size: 0
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)uid: 0, gid: 0
      [6a76](attr2fattr)mode: 40555
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)atime: 3ed332b1, mtime: 3ed332b1
      [6a76](lname2fattr)nlink: 86
      [6a76](lu_cache_add2dir) adding proc->(null) to /
      [6a76](do_readdir)fname: proc
      [6a76](do_readdir)laname: dr-xr-xr-x   86 root     root            0 May 27 09:41 proc
      [6a76](attr2fattr)size: 1000
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)uid: 0, gid: 0
      [6a76](attr2fattr)mode: 40750
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)atime: 3ed27dea, mtime: 3ed106f7
      [6a76](lname2fattr)nlink: 12
      [6a76](lu_cache_add2dir) adding root->(null) to /
      [6a76](do_readdir)fname: root
      [6a76](do_readdir)laname: drwxr-x---   12 root     root         4096 May 25 18:09 root
      [6a76](attr2fattr)size: 1000
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)uid: 0, gid: 0
      [6a76](attr2fattr)mode: 40755
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)atime: 3ed34c18, mtime: 3ed34b74
      [6a76](lname2fattr)nlink: 2
      [6a76](lu_cache_add2dir) adding sbin->(null) to /
      [6a76](do_readdir)fname: sbin
      [6a76](do_readdir)laname: drwxr-xr-x    2 root     root         4096 May 27 11:26 sbin
      [6a76](attr2fattr)size: 1000
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)uid: 0, gid: 0
      [6a76](attr2fattr)mode: 41777
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)atime: 3ed0f617, mtime: 3ed34c2d
      [6a76](lname2fattr)nlink: 13
      [6a76](lu_cache_add2dir) adding tmp->(null) to /
      [6a76](do_readdir)fname: tmp
      [6a76](do_readdir)laname: drwxrwxrwt   13 root     root         4096 May 27 11:29 tmp
      [6a76](attr2fattr)size: 1000
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)uid: 0, gid: 0
      [6a76](attr2fattr)mode: 40755
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)atime: 3ed0d766, mtime: 3ea9c58e
      [6a76](lname2fattr)nlink: 13
      [6a76](lu_cache_add2dir) adding var->(null) to /
      [6a76](do_readdir)fname: var
      [6a76](do_readdir)laname: drwxr-xr-x   13 root     root         4096 Apr 25 23:32 var
      [6a76](attr2fattr)size: 1000
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)uid: 0, gid: 0
      [6a76](attr2fattr)mode: 40755
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)atime: 3ed0d55c, mtime: 3ecf7dd7
      [6a76](lname2fattr)nlink: 16
      [6a76](lu_cache_add2dir) adding opt->(null) to /
      [6a76](do_readdir)fname: opt
      [6a76](do_readdir)laname: drwxr-xr-x   16 root     root         4096 May 24 14:12 opt
      [6a76](attr2fattr)size: 1000
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)uid: 3e8, gid: 66
      [6a76](attr2fattr)mode: 40755
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](attr2fattr)atime: 3ed344f9, mtime: 3ea0a6c9
      [6a76](lname2fattr)nlink: 18
      [6a76](lu_cache_add2dir) adding usr->(null) to /
      [6a76](do_readdir)fname: usr
      [6a76](do_readdir)laname: drwxr-xr-x   18 smmsp    users        4096 Apr 19 01:30 usr
      [6a76](send_packet)sending packet...
      [6a76](recv_packet)receiving packet...
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](do_readdir)done reading dir
      [6a76](send_packet)sending packet...
      [6a76](recv_packet)receiving packet...
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](ntoh)fixing long
      [6a76](lu_cache_add_dir) adding dir / to bucket 0
      [6a76](check_dir) '.' entry found
      [6a76](check_dir) '..' entry found
      [6a76](search) search / in bucket 0, size=0
      [6a76](search) dir not found
      [6a76](lu_cache_add_dir) out
      [6a76](lu_cache_readdir) reading directory /
      [6a76](search) search / in bucket 0, size=1
      [6a76](search) / found
      [6a76](lu_cache_readdir) out
      [6a76](generic_stat) stat /lost+found
      [6a76](lu_cache_lookup_file) dir: /, file: lost+found
      [6a76](lu_cache_lookup) looking up lost+found in dir /
      [6a76](search) search / in bucket 0, size=1
      [6a76](search) / found
      [6a76](lu_cache_lookup) file found
      [6a76](generic_stat) stat /boot
      [6a76](lu_cache_lookup_file) dir: /, file: boot
      [6a76](lu_cache_lookup) looking up boot in dir /
      [6a76](search) search / in bucket 0, size=1
      [6a76](search) / found
      [6a76](lu_cache_lookup) file found
      [6a76](generic_stat) stat /etc
      [6a76](lu_cache_lookup_file) dir: /, file: etc
      [6a76](lu_cache_lookup) looking up etc in dir /
      [6a76](search) search / in bucket 0, size=1
      [6a76](search) / found
      [6a76](lu_cache_lookup) file found
      [6a76](generic_stat) stat /bin
      [6a76](lu_cache_lookup_file) dir: /, file: bin
      [6a76](lu_cache_lookup) looking up bin in dir /
      [6a76](search) search / in bucket 0, size=1
      [6a76](search) / found
      [6a76](lu_cache_lookup) file found
      [6a76](generic_stat) stat /dev
      [6a76](lu_cache_lookup_file) dir: /, file: dev
      [6a76](lu_cache_lookup) looking up dev in dir /
      [6a76](search) search / in bucket 0, size=1
      [6a76](search) / found
      [6a76](lu_cache_lookup) file found
      [6a76](generic_stat) stat /home
      [6a76](lu_cache_lookup_file) dir: /, file: home
      [6a76](lu_cache_lookup) looking up home in dir /
      [6a76](search) search / in bucket 0, size=1
      [6a76](search) / found
      [6a76](lu_cache_lookup) file found
      [6a76](generic_stat) stat /lib
      [6a76](lu_cache_lookup_file) dir: /, file: lib
      [6a76](lu_cache_lookup) looking up lib in dir /
      [6a76](search) search / in bucket 0, size=1
      [6a76](search) / found
      [6a76](lu_cache_lookup) file found
      [6a76](generic_stat) stat /mnt
      [6a76](lu_cache_lookup_file) dir: /, file: mnt
      [6a76](lu_cache_lookup) looking up mnt in dir /
      [6a76](search) search / in bucket 0, size=1
      [6a76](search) / found
      [6a76](lu_cache_lookup) file found
      [6a76](generic_stat) stat /proc
      [6a76](lu_cache_lookup_file) dir: /, file: proc
      [6a76](lu_cache_lookup) looking up proc in dir /
      [6a76](search) search / in bucket 0, size=1
      [6a76](search) / found
      [6a76](lu_cache_lookup) file found
      [6a76](generic_stat) stat /root
      [6a76](lu_cache_lookup_file) dir: /, file: root
      [6a76](lu_cache_lookup) looking up root in dir /
      [6a76](search) search / in bucket 0, size=1
      [6a76](search) / found
      [6a76](lu_cache_lookup) file found
      [6a76](generic_stat) stat /sbin
      [6a76](lu_cache_lookup_file) dir: /, file: sbin
      [6a76](lu_cache_lookup) looking up sbin in dir /
      [6a76](search) search / in bucket 0, size=1
      [6a76](search) / found
      [6a76](lu_cache_lookup) file found
      [6a76](generic_stat) stat /tmp
      [6a76](lu_cache_lookup_file) dir: /, file: tmp
      [6a76](lu_cache_lookup) looking up tmp in dir /
      [6a76](search) search / in bucket 0, size=1
      [6a76](search) / found
      [6a76](lu_cache_lookup) file found
      [6a76](generic_stat) stat /var
      [6a76](lu_cache_lookup_file) dir: /, file: var
      [6a76](lu_cache_lookup) looking up var in dir /
      [6a76](search) search / in bucket 0, size=1
      [6a76](search) / found
      [6a76](lu_cache_lookup) file found
      [6a76](generic_stat) stat /opt
      [6a76](lu_cache_lookup_file) dir: /, file: opt
      [6a76](lu_cache_lookup) looking up opt in dir /
      [6a76](search) search / in bucket 0, size=1
      [6a76](search) / found
      [6a76](lu_cache_lookup) file found
      [6a76](generic_stat) stat /usr
      [6a76](lu_cache_lookup_file) dir: /, file: usr
      [6a76](lu_cache_lookup) looking up usr in dir /
      [6a76](search) search / in bucket 0, size=1
      [6a76](search) / found
      [6a76](lu_cache_lookup) file found
      [6a76](generic_readdir) readdir /, offset 17
      [6a76](lu_cache_readdir) reading directory /
      [6a76](search) search / in bucket 0, size=1
      [6a76](search) / found
      [6a76](lu_cache_readdir) out
      total 145
      drwxr-xr-x    2 2        sys          4096 May 15 00:20 bin
      drwxr-xr-x    4 2        sys          1024 Jan  9 18:11 boot
      drwxr-xr-x    6 2        sys         86016 May 27 09:41 dev
      drwxr-xr-x   25 2        sys          4096 May 27 11:29 etc
      drwxr-xr-x    3 2        sys          4096 Dec 25 00:05 home
      drwxr-xr-x    3 2        sys          4096 Feb  6 21:43 lib
      drwx------    2 2        sys         16384 Dec 24 18:14 lost+found
      drwxr-xr-x    8 2        sys          4096 Mar 20 15:33 mnt
      drwxr-xr-x   16 2        sys          4096 May 24 14:12 opt
      dr-xr-xr-x   86 2        sys             0 May 27 09:41 proc
      drwxr-x---   12 2        sys          4096 May 25 18:09 root
      drwxr-xr-x    2 2        sys          4096 May 27 11:26 sbin
      drwxrwxrwt   13 2        sys          4096 May 27 11:29 tmp
      drwxr-xr-x   18 2        sys          4096 Apr 19 01:30 usr
      drwxr-xr-x   13 2        sys          4096 Apr 25 23:32 var
      root:/mnt#

       
    • Florin Malita

      Florin Malita - 2003-05-28

      so it does fix it :D at least it doesn't hang anymore...

      the other problem you have is that you didn't set up ssh public key authentication (you are being interactively prompted for a password). you can use it like this if you specify "-c 1" to lufsmount, but I recommend you take a look at the lussh script, it makes things really easy.

      to summarize, here are your options:
      1) lufsmount sshfs://root@localhost /mnt/dav -c 1
      2) run lussh first and set up public key ssh authentication

       
    • Anonymous - 2003-05-28

      ok on my localhost
      lussh und -c 1 worked

      but this was only for testing ;-)

      on the server of my university i was now able to use it with -c 1 but the lussh didn't succeed to remove the prompting.:

      nicolas:~$ lussh

      This script will help you setup ssh public key authentication.
      SSH server: userv1.informatik.uni-leipzig.de
      user[nicolas]: nicolas
      Setting up RSA authentication for nicolas@userv1.informatik.uni-leipzig.de...
      RSA public key OK.
      nicolas@userv1.informatik.uni-leipzig.de's password:
      id_rsa.pub           100% |*****************************|   229       00:00
      nicolas@userv1.informatik.uni-leipzig.de's password:

      You should see the following message without being prompted for anything now...

      nicolas@userv1.informatik.uni-leipzig.de's password:
      !!! Congratulations, you are now logged in as nicolas@userv1.informatik.uni-lei
      pzig.de !!!

      If you were prompted, public key authentication could not be configured...

      Enter a blank servername when done.

      SSH server:

      any idea why this could have happend.
      and what especially interests me, what exactly does this script ?

       
    • Florin Malita

      Florin Malita - 2003-05-28

      ok, let me explain this:

      in order to take advantage of the multiple channels feature, sshfs must be able to automatically authenticate on the remote server (that is without user interaction).

      this can ba acomplished using ssh's public key authentication feature (man ssh): you generate a keypair locally, add the public key on the remote host in ~/.ssh/authorized_keys and then ssh will authenticate yourself automatically. this is what lussh does, it sets up the whole thing.

      now, some ssh servers simply do not allow public key authentication - this seems to be your university server's case. then you must instruct lufs to only use one channel (-c 1) and deal with the interactive login. note that you might still run into some problems, if the connection later fails lufs will try to reopen it and the interactive login will fail since it is already in daemon mode.

      hope this helps.

       
    • Joel Burton

      Joel Burton - 2003-06-14

      This might be the problem for some people, but I experience the same problem (lufs requests a login) when I already *have* public key authentication working against that server.

      ie,

      $ ssh user@server

      logs me in w/o any password prompt

      but

      $ mount -t lufs none /mnt/mymount -o host=server,username=user,fs=lufs

      prompts me for a password (& doesn' t work unless channels is set to 1)

      I've used lussh and it reports success (and public key encryption was working both before & after this w/stock ssh).

       

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks