Skip to contentSkip to conversation

"metas" in reiserfs v4 snapshot 2004.03.26

PATCH The Amazing Dragon (Elliott Mitchell) 1 participant 1 message Apr 3, 2004

lore
Share & tools
lore
#0 lore raw
Quoted 12 lines

From: Narcoleptic Electron <[email protected]>

I've attempted to incorporate all the new proposals. Please let me know if I've missed any.

Quoted 5 lines · Narcoleptic Electron

PROBLEMS:

1. Name clashes with user files; "metas" does not
have
meaning in all non-English languages; too long.

The latter two are pretty trivial, how meaningful is "lost+found" in other languages, five characters is that long?

I feel the first item on that list is fatal though. I be *very* worried about the ReiserFS v4 patch being rejected from the kernel due to this. Real filenames in any language should be considered precious, and not stolen without a *very* good reason. This is a decent reason, but utterly short of being good enough.

Quoted 5 lines
Quoted 2 lines

b) Conflict with an important mail application's
directory naming scheme.

And the djbdns utils (eg, dnscache), whic use files starting with @ for cache files.

In other words, problems with multiple applications; fatal flaw. Though not a common one, short and therefore precious.

Quoted 1 line
Quoted 1 line

c) No additional problems.

Still short and therefore precious. There could be multiple unknown applications that use it. Already commonly used in filenames (though not by itself).

Quoted 5 lines

e) This is reserved by Windows, making a Windows port of ReiserFS impossible (I think this was the reason; it was an objection raised by someone else during the previous thread on this subject). (The "..." approach was my original suggestion on the original thread...)

On which systems you could use / as the metadata separator.

Quoted 4 lines
Quoted 4 lines

3. All file names containing the delimiter character will cause problems; introduces a whole new [arguably
redundant] fundamental concept.

Not without president though, notably MacOS 10 metadata appears when accessing a file as a directory. Only MacOS 10 doesn't include a new separator.

Quoted 6 lines

5. We would need a way to differentiate regular subdirectories in "/proc/meta/" with meta data entries.
For example, consider "/proc/meta/foo/bar/baz": is "baz" a metadata entry for "/foo/bar", or is "bar/baz" metadata for "/foo"?

The problems are *much* bigger than this. For one thing, there is the already mentioned problem, this completely breaks across network filesystems. The *very* much larger problem is the overhead. If I want to access the metadata for an arbitrary file you have to use getwd() which may in turn stat() every file in several directories. If you're interacting with a user, the overhead isn't bad, but if you're doing a couple hundred of these overhead is a severe problem.

Signature · 4 lines
(\___(\___(\______          --=> 8-) EHM <=--          ______/)___/)___/)
 \   (    |         [email protected]      PGP 8881EF59         |    )   /
  \_  \   |  _____  -O #include <stddisclaimer.h> O-   _____  |   /  _/
    \___\_|_/82 04 A1 3C C7 B1 37 2A*E3 6E 84 DA 97 4C 40 E6\_|_/___/