Marcin - 2008-04-12

Please see debug below:

root@berduchwal-laptop:~# curlftpfs 192.168.2.7:21 /media/backup -d -v -o ftpfs_debug=3

* About to connect() to 192.168.2.7 port 21 (#0)
*   Trying 192.168.2.7... * connected
* Connected to 192.168.2.7 (192.168.2.7) port 21 (#0)
< 220 NET Disk FTP Server ready.
> USER AAAAAAA
< 331 User name okay, need password.
> PASS XXXXXXXX
< 230 User logged in, proceed.
> PWD
< 257 "/" is current directory.
* Entry path is '/'
> SIZE (nil)
< 550 Requested action not taken.
> REST 0
< 350 Requested file action pending further information.
* Connection #0 to host 192.168.2.7 left intact
unique: 1, opcode: INIT (26), nodeid: 0, insize: 56
INIT: 7.8
flags=0x00000003
max_readahead=0x00020000
   INIT: 7.8
   flags=0x00000000
   max_readahead=0x00020000
   max_write=0x00020000
   unique: 1, error: 0 (Success), outsize: 40
unique: 2, opcode: GETATTR (3), nodeid: 1, insize: 40
1208021765 ftpfs.c:348 dir_path: / ftp://192.168.2.7:21/
* Re-using existing connection! (#0) with host 192.168.2.7
* Connected to 192.168.2.7 (192.168.2.7) port 21 (#0)
> CWD /
< 250 Requested file action okay, completed.
> EPSV
* Connect data stream passively
< 500 Syntax error, command unrecognized.
* disabling EPSV usage
> PASV
< 227 Entering Passive Mode (192,168,2,7,86,150).
*   Trying 192.168.2.7... * connected
* Connecting to 192.168.2.7 (192.168.2.7) port 22166
> TYPE A
< 200 Type set to A.
> LIST -a
< 150 File status okay; about to open data connection.
* Maxdownload = -1
1208021765 ftpfs.c:298 read_data: 61
  1208021765 ftpfs.c:299 drw-rw-rw-   1 user     group           0 Mar 31 00:56 Kopia

< 226 Closing data connection.
* Connection #0 to host 192.168.2.7 left intact
   unique: 2, error: 0 (Success), outsize: 112
unique: 3, opcode: ACCESS (34), nodeid: 1, insize: 48
ACCESS / 04
   unique: 3, error: -38 (Function not implemented), outsize: 16
unique: 4, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 4, error: 0 (Success), outsize: 112
unique: 5, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 5, error: 0 (Success), outsize: 112
unique: 6, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 6, error: 0 (Success), outsize: 112
unique: 7, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 7, error: 0 (Success), outsize: 112
unique: 8, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 8, error: 0 (Success), outsize: 112
unique: 9, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 9, error: 0 (Success), outsize: 112
unique: 10, opcode: LOOKUP (1), nodeid: 1, insize: 48
LOOKUP /.hidden
1208021779 ftpfs.c:348 dir_path: /.hidden ftp://192.168.2.7:21/
* Re-using existing connection! (#0) with host 192.168.2.7
* Connected to 192.168.2.7 (192.168.2.7) port 21 (#0)
> CWD /
< 250 Requested file action okay, completed.
> PASV
* Connect data stream passively
< 227 Entering Passive Mode (192,168,2,7,86,151).
*   Trying 192.168.2.7... * connected
* Connecting to 192.168.2.7 (192.168.2.7) port 22167
> LIST -a
< 150 File status okay; about to open data connection.
* Maxdownload = -1
1208021779 ftpfs.c:298 read_data: 61
  1208021779 ftpfs.c:299 drw-rw-rw-   1 user     group           0 Mar 31 00:56 Kopia

< 226 Closing data connection.
* Connection #0 to host 192.168.2.7 left intact
1208021779 ftpfs-ls.c:260 cache_add_attr: /Kopia
1208021779 ftpfs-ls.c:264 comparing .hidden Kopia
   unique: 10, error: -2 (No such file or directory), outsize: 16
unique: 11, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 11, error: 0 (Success), outsize: 112
unique: 12, opcode: OPENDIR (27), nodeid: 1, insize: 48
   unique: 12, error: 0 (Success), outsize: 32
unique: 13, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 13, error: 0 (Success), outsize: 112
unique: 14, opcode: READDIR (28), nodeid: 1, insize: 64
1208021779 ftpfs.c:318 ftpfs_getdir: ftp://192.168.2.7:21/
* Re-using existing connection! (#0) with host 192.168.2.7
* Connected to 192.168.2.7 (192.168.2.7) port 21 (#0)
> CWD /
< 250 Requested file action okay, completed.
> PASV
* Connect data stream passively
< 227 Entering Passive Mode (192,168,2,7,86,152).
*   Trying 192.168.2.7... * connected
* Connecting to 192.168.2.7 (192.168.2.7) port 22168
> LIST -a
< 150 File status okay; about to open data connection.
* Maxdownload = -1
1208021779 ftpfs.c:298 read_data: 61
  1208021779 ftpfs.c:299 drw-rw-rw-   1 user     group           0 Mar 31 00:56 Kopia

< 226 Closing data connection.
* Connection #0 to host 192.168.2.7 left intact
1208021779 ftpfs-ls.c:257 filler: Kopia
1208021779 ftpfs-ls.c:264 comparing (null) Kopia
   unique: 14, error: 0 (Success), outsize: 48
unique: 15, opcode: LOOKUP (1), nodeid: 1, insize: 46
LOOKUP /Kopia
   NODEID: 2
   unique: 15, error: 0 (Success), outsize: 136
unique: 16, opcode: READDIR (28), nodeid: 1, insize: 64
   unique: 16, error: 0 (Success), outsize: 16
unique: 17, opcode: RELEASEDIR (29), nodeid: 1, insize: 64
   unique: 17, error: 0 (Success), outsize: 16
unique: 18, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 18, error: 0 (Success), outsize: 112
unique: 19, opcode: OPENDIR (27), nodeid: 2, insize: 48
   unique: 19, error: 0 (Success), outsize: 32
unique: 20, opcode: READDIR (28), nodeid: 2, insize: 64
1208021779 ftpfs.c:318 ftpfs_getdir: ftp://192.168.2.7:21/Kopia/
* Re-using existing connection! (#0) with host 192.168.2.7
* Connected to 192.168.2.7 (192.168.2.7) port 21 (#0)
> CWD /
< 250 Requested file action okay, completed.
> CWD Kopia
< 250 Requested file action okay, completed.
> PASV
* Connect data stream passively
< 227 Entering Passive Mode (192,168,2,7,86,153).
*   Trying 192.168.2.7... * connected
* Connecting to 192.168.2.7 (192.168.2.7) port 22169
> LIST -a
< 150 File status okay; about to open data connection.
* Maxdownload = -1
1208021779 ftpfs.c:298 read_data: 115
  1208021779 ftpfs.c:299 drw-rw-rw-   1 user     group           0 Mar 31 00:56 .
drw-rw-rw-   1 user     group           0 Mar 31 00:56 ..

* Remembering we are in dir Kopia/
< 226 Closing data connection.
* Connection #0 to host 192.168.2.7 left intact
1208021779 ftpfs-ls.c:257 filler: .
1208021779 ftpfs-ls.c:264 comparing (null) .
1208021779 ftpfs-ls.c:257 filler: ..
1208021779 ftpfs-ls.c:264 comparing (null) ..
   unique: 20, error: 0 (Success), outsize: 80
unique: 21, opcode: READDIR (28), nodeid: 2, insize: 64
   unique: 21, error: 0 (Success), outsize: 16
unique: 22, opcode: RELEASEDIR (29), nodeid: 2, insize: 64
   unique: 22, error: 0 (Success), outsize: 16
unique: 23, opcode: GETATTR (3), nodeid: 2, insize: 40
   unique: 23, error: 0 (Success), outsize: 112
unique: 24, opcode: STATFS (17), nodeid: 1, insize: 40
   unique: 24, error: 0 (Success), outsize: 96
unique: 25, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 25, error: 0 (Success), outsize: 112
unique: 26, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 26, error: 0 (Success), outsize: 112
unique: 27, opcode: LOOKUP (1), nodeid: 1, insize: 46
LOOKUP /Kopia
   NODEID: 2
   unique: 27, error: 0 (Success), outsize: 136
unique: 28, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 28, error: 0 (Success), outsize: 112
unique: 29, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 29, error: 0 (Success), outsize: 112
unique: 30, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 30, error: 0 (Success), outsize: 112
unique: 31, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 31, error: 0 (Success), outsize: 112
unique: 32, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 32, error: 0 (Success), outsize: 112
unique: 33, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 33, error: 0 (Success), outsize: 112
unique: 34, opcode: LOOKUP (1), nodeid: 2, insize: 48
LOOKUP /Kopia/.hidden
1208021781 ftpfs.c:348 dir_path: /Kopia/.hidden ftp://192.168.2.7:21/Kopia/
* Re-using existing connection! (#0) with host 192.168.2.7
* Connected to 192.168.2.7 (192.168.2.7) port 21 (#0)
* Request has same path as previous transfer
> PASV
* Connect data stream passively
< 227 Entering Passive Mode (192,168,2,7,86,154).
*   Trying 192.168.2.7... * connected
* Connecting to 192.168.2.7 (192.168.2.7) port 22170
> LIST -a
< 150 File status okay; about to open data connection.
* Maxdownload = -1
1208021781 ftpfs.c:298 read_data: 115
  1208021781 ftpfs.c:299 drw-rw-rw-   1 user     group           0 Mar 31 00:56 .
drw-rw-rw-   1 user     group           0 Mar 31 00:56 ..

* Remembering we are in dir Kopia/
< 226 Closing data connection.
* Connection #0 to host 192.168.2.7 left intact
1208021781 ftpfs-ls.c:260 cache_add_attr: /Kopia/.
1208021781 ftpfs-ls.c:264 comparing .hidden .
1208021781 ftpfs-ls.c:260 cache_add_attr: /Kopia/..
1208021781 ftpfs-ls.c:264 comparing .hidden ..
   unique: 34, error: -2 (No such file or directory), outsize: 16
unique: 35, opcode: OPENDIR (27), nodeid: 2, insize: 48
   unique: 35, error: 0 (Success), outsize: 32
unique: 36, opcode: READDIR (28), nodeid: 2, insize: 64
   unique: 36, error: 0 (Success), outsize: 80
unique: 37, opcode: GETATTR (3), nodeid: 2, insize: 40
   unique: 37, error: 0 (Success), outsize: 112
unique: 38, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 38, error: 0 (Success), outsize: 112
unique: 39, opcode: READDIR (28), nodeid: 2, insize: 64
   unique: 39, error: 0 (Success), outsize: 16
unique: 40, opcode: RELEASEDIR (29), nodeid: 2, insize: 64
   unique: 40, error: 0 (Success), outsize: 16
unique: 41, opcode: LOOKUP (1), nodeid: 1, insize: 48
LOOKUP /.hidden
   unique: 41, error: -2 (No such file or directory), outsize: 16
unique: 42, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 42, error: 0 (Success), outsize: 112
unique: 43, opcode: OPENDIR (27), nodeid: 1, insize: 48
   unique: 43, error: 0 (Success), outsize: 32
unique: 44, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 44, error: 0 (Success), outsize: 112
unique: 45, opcode: READDIR (28), nodeid: 1, insize: 64
   unique: 45, error: 0 (Success), outsize: 48
unique: 46, opcode: GETATTR (3), nodeid: 2, insize: 40
   unique: 46, error: 0 (Success), outsize: 112
unique: 47, opcode: READDIR (28), nodeid: 1, insize: 64
   unique: 47, error: 0 (Success), outsize: 16
unique: 48, opcode: RELEASEDIR (29), nodeid: 1, insize: 64
   unique: 48, error: 0 (Success), outsize: 16
unique: 49, opcode: STATFS (17), nodeid: 2, insize: 40
   unique: 49, error: 0 (Success), outsize: 96
unique: 50, opcode: GETATTR (3), nodeid: 1, insize: 40
   unique: 50, error: 0 (Success), outsize: 112

///////////////////////////////////Below starts when I try mkdir///////////////////////////////////////

unique: 51, opcode: LOOKUP (1), nodeid: 1, insize: 46
LOOKUP /Kopia
   NODEID: 2
   unique: 51, error: 0 (Success), outsize: 136
unique: 52, opcode: LOOKUP (1), nodeid: 2, insize: 57
LOOKUP /Kopia/folder bez nazwy
1208021791 ftpfs.c:348 dir_path: /Kopia/folder bez nazwy ftp://192.168.2.7:21/Kopia/
* Re-using existing connection! (#0) with host 192.168.2.7
* Connected to 192.168.2.7 (192.168.2.7) port 21 (#0)
* Request has same path as previous transfer
> PASV
* Connect data stream passively
< 227 Entering Passive Mode (192,168,2,7,86,155).
*   Trying 192.168.2.7... * connected
* Connecting to 192.168.2.7 (192.168.2.7) port 22171
> LIST -a
< 150 File status okay; about to open data connection.
* Maxdownload = -1
1208021791 ftpfs.c:298 read_data: 115
  1208021791 ftpfs.c:299 drw-rw-rw-   1 user     group           0 Mar 31 00:56 .
drw-rw-rw-   1 user     group           0 Mar 31 00:56 ..

* Remembering we are in dir Kopia/
< 226 Closing data connection.
* Connection #0 to host 192.168.2.7 left intact
1208021791 ftpfs-ls.c:260 cache_add_attr: /Kopia/.
1208021791 ftpfs-ls.c:264 comparing folder bez nazwy .
1208021791 ftpfs-ls.c:260 cache_add_attr: /Kopia/..
1208021791 ftpfs-ls.c:264 comparing folder bez nazwy ..
   unique: 52, error: -2 (No such file or directory), outsize: 16
unique: 53, opcode: MKDIR (9), nodeid: 2, insize: 65
MKDIR /Kopia/folder bez nazwy
* Re-using existing connection! (#0) with host 192.168.2.7
* Connected to 192.168.2.7 (192.168.2.7) port 21 (#0)
* Request has same path as previous transfer
> SIZE (nil)
< 550 Requested action not taken.
> REST 0
< 350 Requested file action pending further information.
Segmentation fault (core dumped)