D-Link Forums
The Graveyard - Products No Longer Supported => D-Link Storage => DNS-323 => Topic started by: markwinder on March 29, 2008, 07:26:13 PM
-
I have a directory with thousands of sub directories. Through FTP only the first 1/4 or so show up in a "dir". Is there a way to allow for more files/folders to display thorugh FTP?
-
You are currently only able to go 4 folder deep into your directories though FTP?
-
I am not having a problem with directory depth, but with the directory being truncated at 2000 items. With the latest firmware upgrade (1.05) I get the message in my FTP clients (DOS and IE 7):
226 - Output truncated to 2000 matches
I have about 16000 files and folders in the directory. Is there a way to see them all?
-
So this simply happens if you have more then 2000 files in a folder? I am trying to replicate your issue but cannot?
-
Many FTP servers truncate the ls output to 2000 against DoS attacks; maybe the DNS-323 one is one of them.
-
Many FTP servers truncate the ls output to 2000 against DoS attacks; maybe the DNS-323 one is one of them.
Could you explain that a little further - or maybe provide a link to a site that does - I really can't conceptualize the connection between limiting the ls (or dir) output and a Denial of Service.
-
Hmm... You expect me to back my words up? What a strange request... ;D
Here is a search result: http://www.smartftp.com/support/kb/226-output-truncated-f197.html (http://www.smartftp.com/support/kb/226-output-truncated-f197.html)
I at least remember some versions of ProFTP had this limitation. What FTP server does the DNS-323 use?
-
ahhh - it wasn't meant as a challenge - more of a request for elucidation - it's a new concept to me.
Edit --------------------------------------------------------------------------------------------------------------------------------------------------------
The link really wasn't that informative, but I see where they're coming from and a quick google shows it seems to be standard ftp practice - but - here's why I found it strange - a directory listing is a fairly simple task and does require that much in terms of resources.
Rather than do this through ftp - I went to a DOS prompt and listed the contents of a folder - 96,252 files - took about four minutes - this was across a gigabit network and network utilization never went above 1% and processor utilization (dual core 3GHz P4) never went above 4% - had I wanted I could have been doing quite a few other things with that server over that network.
I've actually seen (with a network analyser) what a DoS attack looks like (this particular one was caused by a misconfigured router) and I just could not vizualise a directory listing being able to chew up that level or resources, although extrapolating - 1% of a 1000mbps is 10 mbps, so on a slower WAN link, say a T1 (1.54mbps) link, that listing would have run for 45 minutes or more, so yes, it would/could qualify as Denial of Service
-
The only thing I can think of is I have over 2000 folders (directories). I haven't tested with a large number of files, but based on your results I would guess it works.
-
I haven't seen any problem with over 2000 files I will have to try it with 2000 folders to see if I run into anything.
-
Thanks. This issue makes it impossible to use the product for the purpose I bought it for, so I'm keen to help. If you can't duplicate the problem I can send you my directory structure.
I can say that by re-organizing the directories so the tree is deeper with less breadth (< 2000 directories in each folder) it works, but it isn't a long-term solution for me.