From: "Alexander G. M. Smith" <agmsmith@rogers.com>
To: reiserfs-list@namesys.com
Subject: Re: Carrying Attributes too Far
Date: Fri, 19 Sep 2003 15:31:49 -0400 EDT [thread overview]
Message-ID: <61094883653-BeMail@cr593174-a> (raw)
In-Reply-To: <20030919134631.GG544@rahul.net>
Bennett Todd wrote on Fri, 19 Sep 2003 09:46:31 -0400:
> If someone were to want to attach an icon to a directory describing
> what it contained, that'd be an opposite case; stat should still
> report the internal node as a directory, you shouldn't see the icon
> unless you explicitly tried to open that internal node with a file
> open syscall.
The icon would be in a file (or rather, use the file-like behaviour of a fildirute thing). The icon would be a child of the main directory, and have a standard name that the GUI recognises (like "thumbnail" or "icon"). In our latest discussions, after a suggestion by Narcoleptic Electron, we've agreed that putting attributes in a special subdirectory to segregate them from the ordinary directory contents is a good idea. In that case, the icon would be inside the ",," directory which is inside the main directory.
In the fildirute view (things are both files and directories, stat() returns something new):
MainDir (the main directory we're talking about)
MainDir/,, (a directory storing MainDir's attributes and
metadata. Note that it isn't a full directory, it's
just generated by the system to keep metadata
separate from the contents. ",," can't have its
own attributes - it may be implemented as a bit flag
on each thing rather than as a real directory)
MainDir/,,/MIME (type of the MainDir, contains "application/directory")
MainDir/,,/icon (a fildirute Thing that contains the icon data)
MainDir/,,/icon/,,/MIME (MIME type of the icon)
MainDir/SomeFile (a regular child of MainDir)
Or if we use a Janus (two faced overused god) mapping to POSIX files and directories, where the ,, child is recreated as a directory with a similar name to its parent:
MainDir (a directory)
MainDir,, (a directory)
MainDir,,/icon (the icon file contents)
MainDir,,/icon,, (a directory)
MainDir,,/icon,,/MIME (a file containing the MIME type of the icon)
MainDir/SomeFile (a file)
MainDir/SomeFile,, (a directory with metadata for SomeFile)
Back to the original argument, instead of using a directory to separate attributes from contents, can't we mangle the names? If we could put up with the name space corruption, we could just prefix all our metadata Things with ",," or ".." and mix them in with the regular fildirute Thing "directory" contents. Standard tools would be able to operate on both metadata and regular data, which is good from the namespace side. Plus we wouldn't have to worry about creating a magic ",," directory, which isn't like other directories (no attributes attached to it, etc). So long as users don't name things starting with a pair of commas (or periods), it should be OK, though not philosophically elegant. Hmmm, didn't I see "..userid" somewhere? Looks like I've come full circle to what already existed!
In Hans Reiser's Reiser4 paper: "An interesting question is whether or not all of these hidden files should have the same name prefix (e.g. '..' at the start of the hidden name). I am still soliciting input on this. Note that this feature should be used for special files that one does not want to be backed up."
Oh, ok, guess we should use ",," as a prefix (or directory name) for metadata like attributes, since they should be backed up.
- Alex
next prev parent reply other threads:[~2003-09-19 19:31 UTC|newest]
Thread overview: 60+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-09-11 15:14 Fwd: Re: Reiser4: "pseudo file namespace" suggestion Narcoleptic Electron
2003-09-11 15:18 ` Hans Reiser
2003-09-13 23:59 ` Carrying Attributes too Far (was Reiser4: "pseudo file namespace" suggestion) Alexander G. M. Smith
2003-09-14 1:56 ` Mike Fedyk
2003-09-14 3:46 ` Alexander G. M. Smith
2003-09-14 3:53 ` Carrying Attributes too Far Hubert Chan
2003-09-14 4:21 ` Hubert Chan
2003-09-14 3:39 ` Hubert Chan
2003-09-14 4:21 ` Hubert Chan
2003-09-16 19:15 ` Alexander G. M. Smith
2003-09-18 17:14 ` Narcoleptic Electron
2003-09-18 18:08 ` Hans Reiser
2003-09-18 20:16 ` Alexander G. M. Smith
2003-09-18 20:31 ` Grant Miner
2003-09-18 21:44 ` Alexander G. M. Smith
2003-09-18 22:00 ` Grant Miner
2003-09-18 22:28 ` Narcoleptic Electron
2003-09-18 22:42 ` Hans Reiser
2003-09-18 23:06 ` Grant Miner
2003-09-18 23:17 ` Narcoleptic Electron
2003-09-18 23:23 ` Narcoleptic Electron
2003-09-18 23:28 ` Grant Miner
2003-09-19 0:29 ` Alexander G. M. Smith
2003-09-19 0:28 ` Alexander G. M. Smith
2003-09-19 0:46 ` Hans Reiser
2003-09-19 1:45 ` Narcoleptic Electron
2003-09-19 2:52 ` Alexander G. M. Smith
2003-09-19 4:40 ` Narcoleptic Electron
2003-09-19 8:42 ` Martin Wilck
2003-09-19 13:27 ` Alexander G. M. Smith
2003-09-19 15:13 ` Martin Wilck
2003-09-19 15:35 ` Alexander G. M. Smith
2003-09-19 15:48 ` Narcoleptic Electron
2003-09-19 13:20 ` Alexander G. M. Smith
2003-09-19 13:46 ` Bennett Todd
2003-09-19 19:31 ` Alexander G. M. Smith [this message]
2003-09-19 22:51 ` Narcoleptic Electron
2003-09-20 1:31 ` Hans Reiser
2003-09-22 15:53 ` Attribute Directory Name (Was: Carrying Attributes too Far) Narcoleptic Electron
2003-09-22 20:02 ` Narcoleptic Electron
2003-09-22 22:52 ` Alexander G. M. Smith
2003-09-22 13:28 ` Carrying Attributes too Far lrc1
2003-09-22 22:50 ` Alexander G. M. Smith
2003-09-23 1:21 ` lrc1
2003-09-23 22:48 ` Alexander G. M. Smith
2003-09-24 16:57 ` lrc1
2003-09-24 9:35 ` Hans Reiser
2003-09-24 17:52 ` lrc1
2003-09-24 19:37 ` Hubert Chan
2003-09-25 3:40 ` Hans Reiser
-- strict thread matches above, loose matches on Subject: below --
2003-10-04 5:58 lrc1
2003-10-04 18:17 ` Alexander G. M. Smith
2003-10-04 20:10 ` Hubert Chan
2003-12-03 19:18 ` Hans Reiser
2003-12-05 0:30 ` lrc1
2003-12-05 5:27 ` Hubert Chan
2003-12-05 12:38 ` Hans Reiser
2003-12-06 23:33 ` lrc1
2003-12-07 2:48 ` Hubert Chan
2003-12-07 17:08 ` Hans Reiser
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=61094883653-BeMail@cr593174-a \
--to=agmsmith@rogers.com \
--cc=reiserfs-list@namesys.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.