From owner-freebsd-hackers Fri Dec 26 17:53:51 1997 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.7/8.8.7) id RAA19764 for hackers-outgoing; Fri, 26 Dec 1997 17:53:51 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from smtp04.primenet.com (smtp04.primenet.com [206.165.6.134]) by hub.freebsd.org (8.8.7/8.8.7) with ESMTP id RAA19756 for ; Fri, 26 Dec 1997 17:53:36 -0800 (PST) (envelope-from tlambert@usr04.primenet.com) Received: (from daemon@localhost) by smtp04.primenet.com (8.8.8/8.8.8) id SAA09357; Fri, 26 Dec 1997 18:53:29 -0700 (MST) Received: from usr04.primenet.com(206.165.6.204) via SMTP by smtp04.primenet.com, id smtpd009340; Fri Dec 26 18:53:24 1997 Received: (from tlambert@localhost) by usr04.primenet.com (8.8.5/8.8.5) id SAA02918; Fri, 26 Dec 1997 18:53:24 -0700 (MST) From: Terry Lambert Message-Id: <199712270153.SAA02918@usr04.primenet.com> Subject: Re: msdosfs win95 long file name support To: ksmm@cybercom.net (The Classiest Man Alive) Date: Sat, 27 Dec 1997 01:53:23 +0000 (GMT) Cc: hackers@FreeBSD.ORG In-Reply-To: from "The Classiest Man Alive" at Dec 23, 97 11:18:33 am X-Mailer: ELM [version 2.4 PL23] Content-Type: text Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk > : On second thought... After 'touch AAAAA~1' and 'touch AA~99999' you will > : unable to create any long filename started with 'aa'. I am not sure if > : it is a Good Thing(TM). > > Is anybody really going to create 100,000 files that start with the same > two letters in the same directory? I thought that there were limits on > the number of files allowed in a directory that were lower than that. > (Terry?) I am on Christmas vacation... However: There is a limit of 512 FAT table entries in the top level directory; this is including the volume label and the long file name entries for files in the top level directory. There is a limit of "however much disk space" for subdirectories. Also, both approaches aren't using the same algorithm that MS uses for generating "unique" 8.3 names. The MS algorithm seperates the lookup into a "prefix","suffix", and "numeric tail". The directory is passed and the tail starts counting until it gets a number that isn't already taken. So the "break" above won't break Win95. Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.