[comp.sys.amiga.tech] Faster File System

mcr@julie.UUCP (Michael Richardson) (01/31/89)

>so I'm bragging to the net.  (Really, I want *negative* comments.)
  Sorry, none from me.

>- Timestamps are stores in 1 32-bit word, a la Unix, not in 3, a la
>AmigaDOG.
  Rah!

>- A directory, in addition to its 4-byte header, contains 4 bytes of timestamp,
>4 bytes of protection, 2 bytes of parent inode (a magic value for the root
>directory), 1 byte of name length, 1 byte of comment length, strlen(name) +
>strlen(comment) bytes of name and comment, and 3 bytes per entry.  The number
>of entries is computed from the length of the extent stored in the header.
>An entry is 2 bytes of inode number and 1 byte of hash value.  The hash
>function hasn't been decided yet.  The fact that all directory entries are
>pointed to directly by the directory means that I can sort all the inodes
>by track when doing a directory listing, and preferentially allocate new
>directory entries on tracks others are already on.
  ------
  header  4
  ------
  timestamp     -\
  parent-inode    \
  name_len         |- of the directory? (This is a directory inode?)
  com_len         /
  name           /
  len          -/
  entry
  entry
  entry

  So, does this mean that I can have more than one 'link' to each file?
(It would appear that way to me.) I like this!!!

>However, why restrict ourselves to 880K per floppy?  Each sector also has
>16 bytes of "OS recovery info", 27.5K total on the floppy.  It's trivial
>to use this area, as well.  This gives us an extra 28160 bytes, for 926781
>bytes maximum file size, 905.06K.
  I run a one floppy 2000. I trash about a disk a week. I'm always
gratefull for DiskSalv (to RAM:) but wonder if it is worth it. Half the
time it is because AmyMail (Fido point) overflowed the disk and screwed
up things getting out...

>Now, the reason I  posted all this is to find someone who'll tell me I'm
>doing something stupid.  The main things I'm wondering about are:
>
>- Is it okay to use the "OS recovery info" areas like this, and
  above
>- Is it okay to use the 16-byte header areas of the boot blocks?
  What about Virus checkers?

>- Even though I can get something like 36,000 empty files on a floppy,
>I can't get more than 1929 entries in a single directory (i.e. more files
>than will fit on a whole floppy under the current AmigaDOG).  Does anyone
>think there's something repugnant about this?
  Yes if the disk is something like a Write many read many optical disk.
(Where seeks are painfull one a good day.) Of course, anyone who
puts over 100 files in a single directory are asking for it anyway.

>--
>        -Colin (uunet!microsoft!w-colinp)



--

  :!mcr!:
  Michael Richardson                     Amiga
                                  v--------+
 UUCP: uunet!attcan!lsuc!nrcaer!julie!mcr  | INTERNET mcr@doe.carleton.ca
 Fido: Michael Richardson @ 1:163/109.10<--+ Alter @ 7:483/109.10