home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!news.univie.ac.at!scsing.switch.ch!univ-lyon1.fr!ghost.dsi.unimi.it!rpi!uwm.edu!caen!batcomputer!munnari.oz.au!ariel.ucs.unimelb.EDU.AU!werple.apana.org.au!hal9000!monty!newton
- From: newton@monty.apana.org.au (Mark Newton)
- Newsgroups: comp.os.minix
- Distribution: world
- Subject: Re: Another MacMINIX 'suggestion'
- References: <1jqrr5INNbbo@usenet.INS.CWRU.Edu>
- Message-ID: <9301267907@monty.apana.org.au>
- Organization: APANA South Australia - State mail hub
- Date: Tue, 26 Jan 93 16:15:07 +1030
- Lines: 53
-
- bf795@cleveland.Freenet.Edu (James Abendschan) writes:
- > >On longer names: the files limits.h, unistd.h and ar.h all have a
- > >#define whose name contains NAME_MAX. Can I increase this value
- > >without screwing things up? Specifically, would I then have a different
- > >flavor of directory entry (and therefore a different flavor of
- > >filesystem?)
- >
- > Actually, I think 13 chars is a POSIX requirement or some such. I
- > don't know about this. It should work though, I suppose.
-
- Changing NAME_MAX won't make a whole lot of difference. The structure
- of a directory is defined in /usr/include/sys/dir.h:
-
- #ifndef DIRSIZ
- #define DIRSIZ 14
- #endif
-
- struct direct {
- ino_t d_ino;
- char d_name[DIRSIZ];
- };
-
- Each directory entry has space for a 14 character filename (not 13
- chars; the null-terminator isn't necessary), no matter what NAME_MAX
- is set to.
-
- Of course, changing DIRSIZ will break all your existing directories,
- since directory reading routines frequently do things like
- read(fd, buf, sizeof(struct direct)). Changing the size of struct
- direct without altering the on-disk copies of the directory structure
- would be a very bad idea indeed.
-
- (deem Linux vfs included :-)
-
- > >I'm also looking for a ln that handles links to directories (not
- > >just for the super user) as well as symbolic links. Does anyone here
- > >have this? If not: what kinds of things and which files will I have
- > >to deal with?
- >
- > There was a symlink program on one of the ftp archives. My FS isn't
- > big enough to require symlinks, so I haven't tried it. Look for
- > symlink.tar.Z or something on plains.nodak.edu, under ibm or oz-utils ..
- > I think that's where I saw it.
-
- There's a version of it on Warren Toomey's archives, with two patch
- files. I'm running it now, and haven't had any problems with it.
-
- - mark
-
- --------------------------------------------------------------------
- Self-control: The ability to eat newton@monty.apana.org.au
- only one peanut. Mark Newton
- --------------------------------------------------------------------
-