Reply
Old June 16th, 2005 Top | #1
 
warmflatsprite's Avatar
OSNN One Post Wonder
Joined: June 2005
Posts: 1
Reputation: 0
Power: 0

Default NTFS Directory Depth limitation?

Hello,

I work for a small IT company that runs a CVS server on Windows XP that's formatted to NTFS. Since we started with this server configuration (about 6 months ago) it has corrupted four drives. At first we thought it was hardware issues, so we've swapped out drives and eventually the machine, but over the course of last weekend, it happened again. We're beginning to look into software issues. As far as I know, CVS doesn't do any low-level disk access, so that'd lead me to believe that there's some limitation in the interface between the OS and CVS that's causing our discs to crash. The first thing that comes to mind would be directory depth. The files in our repository go to a VERY deep directory structure, and there's over 22,000 files stored in the repository. Could this be the source of our frustrations? Is there anything else we should take a look at?

The corruption is bad enough that a full NTFS rollback was not possible, and each time we lost changes to our codebase. Needless to say, any help would be GREATLY appreciated.

Thanks,
Ben
warmflatsprite is offline   Reply With Quote
Old June 17th, 2005 Top | #2
 
albybum's Avatar
Penguin Rancher
Joined: February 2002
Location: Elizabethton, TN
Posts: 282
Reputation: 180
Power: 102

Default Re: NTFS Directory Depth limitation?

The size of a storage area and number of entries in a directory
depends on the filesystem and operating system you are using.
If this is Windows NT 4 or later and you are using NTFS for
the filesystem there is effectively no limit on the number of
direct child folders in a directory. There is however a limit
on the total full pathname string size for file and folders, which
means there is a limit on nesting depth for folders, but this will
vary based on the name lengths for the folders in the path.

User Rights are machine-wide and do not vary based on this
and that particular folder. NTFS permissions for new objects
(files and folders) in a directory are taken from the parent
folder in which they are newly defined. These may not be
exactly the same as are on the parent, but they will be exactly
as the permission of the parent state that the child should have.

--
Roger Abell
Microsoft MVP (Windows Security)
http://www.windowsforumz.com/Securit...ict545082.html
albybum is offline   Reply With Quote
Old June 17th, 2005 Top | #3

OSNN Subscriber
OSNN Folding Team  
Geffy's Avatar
OSNN Veteran Addict
Joined: March 2002
Location: United Kingdom
Posts: 7,854
Reputation: 1490
Power: 190

Default Re: NTFS Directory Depth limitation?

are you using a dedicated machine to host the cvs server? an alternative if you cant get NTFS to host it stabley then try either Unix or Linux. I havent tried to run cvs on anything I have always used SVN which I run on FreeBSD servers.

how much space does the whole repository take up? how many files are there? what is the current deepest path? are you syncing this with other systems running on NTFS? does it corrupt right after a commit or update? during a commit or update? or just seemingly randomly during the night when no one is really using it?


blogtumbloglastfmflickr#rubyonrails@twitter
"I could be replaced with a very small shell script"
Geffy is offline   Reply With Quote

Reply

Bookmarks

Thread Tools

Posting Rules

Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard drives limitation FishBoy Windows Desktop Systems 5 November 21st, 2004 1:04am
Firewire Limitation in XPSP2, any workaround? _kC_ Windows Desktop Systems 6 September 7th, 2004 10:01am
Load NTFS permissions to another directory lirank Web Design & Coding 1 March 15th, 2004 1:31pm
account limitation wtf? A.T Windows Desktop Systems 1 March 9th, 2003 2:21pm