All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alexander G. M. Smith" <agmsmith@rogers.com>
To: Hans Reiser <reiser@namesys.com>
Cc: Reiserfs-list@namesys.com,
	Narcoleptic Electron <narcoleptic_electron@yahoo.co.uk>
Subject: Carrying Attributes too Far (was Reiser4: "pseudo file namespace" suggestion)
Date: Sat, 13 Sep 2003 19:59:07 -0400 EDT	[thread overview]
Message-ID: <3122307789-BeMail@cr593174-a> (raw)
In-Reply-To: <3F60925F.9000004@namesys.com>

Hans Reiser wrote on Thu, 11 Sep 2003 19:18:55 +0400:
> I think that a distinction between attributes and contained objects can
> only be a style convention, because for some objects/attributes there is
> no proper division.
>
> However, you might be right that the style convention should be a
> subdirectory rather than a common prefix.

Sometimes I want attributes on my attributes.  Things like thumbnails for a graphic, stored in a Thumbnails directory that's under the graphic "file".

Graphic.jpeg
Graphic.jpeg/Author
Graphic.jpeg/Thumbnails/Icon32x32.ico
Graphic.jpeg/Thumbnails/Icon64x64.png
Graphic.jpeg/Thumbnails/Icon64x64.png/Width
Graphic.jpeg/Thumbnails/Icon64x64.png/Height

I'd also like to attach a BeOS style MIME type attribute to everything,
even attributes (and you wouldn't have to name the file .jpeg any more).
Of course, you will eventually get to primitive attributes that are only
a coded byte in the metadata rather than a whole file.  But the user
shouldn't be able to tell, and even the MIME type attribute could have a
fake attribute on it saying that it is of type "text/plain", or perhaps
more explicitly "text/mime-string".

Graphic.jpeg/MIME contains "image/jpeg"
Graphic.jpeg/Thumbnails/Icon64x64.png/MIME contains "image/png"
Graphic.jpeg/MIME/MIME contains "text/mime-string"

To avoid too much recursion, "ls" and other utilities should know which
things are primitive things, and avoid trying to list their contents.
The easiest way to cram that in would be to add another attribute:

Graphic.jpeg/MIME/Primitive contains "true", or maybe a single byte
value that is non-zero.  Pick one.

Note it's not Graphic.jpeg/MIME/.Primitive since using a dot prefix to
hide things may no longer be necessary - another attribute could take over
that job, perhaps call it HideFromUser.

Graphic.jpeg/MIME/HideFromUser contains "true".

Thought that may be carring attributes too far :-)

- Alex

  reply	other threads:[~2003-09-13 23:59 UTC|newest]

Thread overview: 50+ 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   ` Alexander G. M. Smith [this message]
2003-09-14  1:56     ` Carrying Attributes too Far (was Reiser4: "pseudo file namespace" suggestion) 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
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

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=3122307789-BeMail@cr593174-a \
    --to=agmsmith@rogers.com \
    --cc=Reiserfs-list@namesys.com \
    --cc=narcoleptic_electron@yahoo.co.uk \
    --cc=reiser@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.