From fnaumann@mail.cs.uni-magdeburg.de Tue Sep 14 22:49:56 2004 Message-ID: <1095194710.4147585642a8a@imp1-q.free.fr> Date: Tue, 14 Sep 2004 22:45:10 +0200 From: Xavier Joubert To: mint@lists.fishpool.fi Subject: Re: [MiNT] fstat long filename on TOS partition References: <20040914200330.95458.qmail@web13426.mail.yahoo.com> In-Reply-To: <20040914200330.95458.qmail@web13426.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 User-Agent: Internet Messaging Program (IMP) 3.2.5 X-Originating-IP: 213.101.236.226 Delivered-To: mint@lists.fishpool.fi X-ecartis-version: Ecartis v1.0.0 Sender: mint-bounce@lists.fishpool.fi Errors-to: mint-bounce@lists.fishpool.fi X-original-sender: xavier.joubert@free.fr Precedence: bulk List-help: List-unsubscribe: List-ID: X-List-ID: X-Milter: ClamAV 0.70/0.70kjel X-Milter: milter-regex 1.5jel X-Milter: ClamAV 0.70/0.70kjel X-Milter: milter-regex 1.5jel Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by prinz.cs.uni-magdeburg.de id i8EKndvT018528 Hello K****s Selon Frederic Fouche : > Shouldnt the OS handle automatically the conversion from LFN to short if the > file is being written on a partition that doesnt support LFN? > Or should the program handle the conversion to shorter names so the partition > does not complain? As long as you take some caution to choose filenames, you don't have to do any special handling. It is the OS responsibility to make this as flawless as possible. For example, you can make sure chars 1-4 of each filename is unique for a given directory. I assume 8.3 support use at least chars 1-4 of each filename (or a hash of the full filename) on all OSes. This is true for FreeMiNT at least, but I don't think you'll find any standard specifying this (I would be glad if someone prove me I'm wrong). For the files named by user, it is the user reponsibility to take such cautions. Hope this helps, Xavier