home *** CD-ROM | disk | FTP | other *** search
- Path: grafix.xs4all.nl!john.hendrikx
- Date: Fri, 12 Jan 96 18:34:41 GMT+1
- Newsgroups: comp.sys.amiga.programmer
- Distribution: world
- Subject: Re: Protection bits
- MIME-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- From: john.hendrikx@grafix.xs4all.nl (John Hendrikx)
- Message-ID: <john.hendrikx.460c@grafix.xs4all.nl>
- Organization: Grafix Attack BBS Holland
-
- In a message of 10 Jan 96 "marcel Offermans" wrote to All:
-
- >>> When I come to think of it this doesn't seem all that hard to do and it
- >>> would probably not even slow down the filesystem. I mean, taking a peek
- >>> at the first 512 bytes as it is written shouldn't be that hard. The
- >>> only trouble is that 512 bytes might not be sufficient to make a
- >>> FileID...
-
- >> But that basically would be the same as having the contents of an .info
- >> file as the first block of EVERY file... Which I think is the basic idea
- >> on the Mac (I don't fully understand the "data" and "resource" forks but
- >> if the "resource" fork is a block at the start of the file that IDs the
- >> file type and the program that generated it...). I, personally, prefer
- >> files to be PURE files; not some hybrid that requires tricks to transfer
- >> to other users.
-
- mO> Either you misunderstood John or I did. I don't think John meant that
- mO> the first 512 bytes should be made into a file ID, he simply suggested
- mO> that looking at the first 512 bytes of any file should be enough to
- mO> identify the file (in most cases).
-
- mO> The file type could then be stored somewhere in the FileInfoBlock, for
- mO> example.
-
- Yes, that's what I meant.
-
- mO> If we expand this idea a little further, it could be the start of a
- mO> more object oriented view on files. For each type, you could define a
- mO> couple of actions, like "view", "edit", "print" and associate them to
- mO> your favourite picture viewer, word processor, etc. Now if this can be
- mO> merged with the datatypes features of the OS, it would make a very nice
- mO> extension.
-
- Sure, the OS and other programs are free to use this extra information in the
- FileInfoBlock for whatever purpose. It could also be used for the 'show all
- files' option of Workbench, it could associate the proper icon with each file
- according to its FileType real quickly. Same goes for FileRequester which for
- example only allows you to select a JPEG picture or some other FileType, all
- files with the wrong FileType are filtered out.
-
- And because the filesytem handles the FileTyping itself, all files 'stored' on
- the disk will automatically get the right FileType as soon as they are copied
- to the disk. No need to pass this information onto other computers in seperate
- files, or using a special archiver. Any computer supporting this system can
- identify the files themselves as they are copied to the disk.
-
- Grtz John
-
- -----------------------------------------------------------------------
- John.Hendrikx@grafix.xs4all.nl TextDemo/FastView/Etc... development
- -----------------------------------------------------------------------
- -- Via Xenolink 1.981, XenolinkUUCP 1.1
-