4.115
Last change
on this file since b63c8f9 was
b63c8f9,
checked in by Sebastian Huber <sebastian.huber@…>, on 01/28/13 at 09:23:28
|
ftpfs: Fix SIZE command handling
It is invalid to issue a SIZE command once a data transfer is
in progress. For reads we issue the SIZE command before the RETR
command and get a snapshot of the file size. For writes the file size
is initialized to zero and incremented for each write chunk.
|
-
Property mode set to
100644
|
File size:
1.4 KB
|
Line | |
---|
1 | *** TEST FTP 1 *** |
---|
2 | syslog: ftpd: FTP daemon started (2 sessions max) |
---|
3 | 220 RTEMS FTP server (Version 1.1-JWJ) ready. |
---|
4 | USER anonymous |
---|
5 | 230 User logged in. |
---|
6 | TYPE I |
---|
7 | 200 Type set to I. |
---|
8 | PASV |
---|
9 | 227 Entering passive mode (127,0,0,1,4,1). |
---|
10 | STOR a.txt |
---|
11 | 150 Opening BINARY mode data connection. |
---|
12 | 226 Transfer complete. |
---|
13 | QUIT |
---|
14 | 221 Goodbye. |
---|
15 | 220 RTEMS FTP server (Version 1.1-JWJ) ready. |
---|
16 | USER anonymous |
---|
17 | 230 User logged in. |
---|
18 | TYPE I |
---|
19 | 200 Type set to I. |
---|
20 | SIZE a.txt |
---|
21 | 213 1102 |
---|
22 | PASV |
---|
23 | 227 Entering passive mode (127,0,0,1,4,4). |
---|
24 | RETR a.txt |
---|
25 | 150 Opening BINARY mode data connection. |
---|
26 | 220 RTEMS FTP server (Version 1.1-JWJ) ready. |
---|
27 | USER anonymous |
---|
28 | 230 User logged in. |
---|
29 | TYPE I |
---|
30 | 200 Type set to I. |
---|
31 | PASV |
---|
32 | 227 Entering passive mode (127,0,0,1,4,7). |
---|
33 | STOR b.txt |
---|
34 | 150 Opening BINARY mode data connection. |
---|
35 | 226 Transfer complete. |
---|
36 | 226 Transfer complete. |
---|
37 | QUIT |
---|
38 | 221 Goodbye. |
---|
39 | QUIT |
---|
40 | 221 Goodbye. |
---|
41 | 220 RTEMS FTP server (Version 1.1-JWJ) ready. |
---|
42 | USER anonymous |
---|
43 | 230 User logged in. |
---|
44 | TYPE I |
---|
45 | 200 Type set to I. |
---|
46 | SIZE b.txt |
---|
47 | 213 1102 |
---|
48 | PASV |
---|
49 | 227 Entering passive mode (127,0,0,1,4,10). |
---|
50 | RETR b.txt |
---|
51 | 150 Opening BINARY mode data connection. |
---|
52 | 226 Transfer complete. |
---|
53 | QUIT |
---|
54 | 221 Goodbye. |
---|
55 | 220 RTEMS FTP server (Version 1.1-JWJ) ready. |
---|
56 | USER anonymous |
---|
57 | 230 User logged in. |
---|
58 | TYPE I |
---|
59 | 200 Type set to I. |
---|
60 | SIZE a.txt |
---|
61 | 213 1102 |
---|
62 | QUIT |
---|
63 | 221 Goodbye. |
---|
64 | 220 RTEMS FTP server (Version 1.1-JWJ) ready. |
---|
65 | USER anonymous |
---|
66 | 230 User logged in. |
---|
67 | TYPE I |
---|
68 | 200 Type set to I. |
---|
69 | SIZE b.txt |
---|
70 | 213 1102 |
---|
71 | QUIT |
---|
72 | 221 Goodbye. |
---|
73 | *** END OF TEST FTP 1 *** |
---|
Note: See
TracBrowser
for help on using the repository browser.