Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

What is the maximum length of a file name on Solari s 7?

file LENGTH maximum
0
Posted

What is the maximum length of a file name on Solari s 7?

0

On Wed, Jan 24, 2001 at 11:51:18AM -0800, Adams, Christopher wrote: > Hi all! > > I really have just one question. I know that the maximum length of a UNIX > file name is related to the UNIX file system itself. Does anyone know where > I can get any good information on the maximum file name length for different > UNIX file systems? > > What is the maximum length of a file name on Solaris 7? $ cd /usr/include/sys/fs [01/24/01 veblen@sinai veblen] $ grep MAXNAM ufs*.h ufs_fsdir.h: * The maximum length of a name in a directory is MAXNAMLEN. ufs_fsdir.h:#define MAXNAMLEN 255 ufs_fsdir.h: char d_name[MAXNAMLEN + 1]; /* name must be no longer than this */ ufs_fsdir.h: ((sizeof (struct direct) – (MAXNAMLEN+1)) + (((dp)->d_namlen+1+3) &~ 3)) ufs_fsdir.h: * is MAXNAMLEN – 1, and this just won’t do. I believe this limitation holds for Linux’s ext2 filesystem and AIX’s jfs as well. Dunno about the others. Regards, Nick Dronen _______________________________________________ SunHELP maillist – SunH

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123