All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Masover <ninja@slaphack.com>
To: tdwebste2@yahoo.com
Cc: Hans Reiser <reiser@namesys.com>, reiserfs-list@namesys.com
Subject: Re: Viewing files as directories
Date: Tue, 25 Jul 2006 19:08:35 -0500	[thread overview]
Message-ID: <44C6B283.9010703@slaphack.com> (raw)
In-Reply-To: <20060725133522.68964.qmail@web51314.mail.yahoo.com>

[-- Attachment #1: Type: text/plain, Size: 3532 bytes --]

Timothy Webster wrote:
> WARNING, a users point of view ;)
> Everything is a file, including a directory.
> 
> Being able to view files as directories is not just a
> nice to have thing. It is actually required if we are
> going to manage changesets of odf files.

The lkml people will tell you that this isn't required at all, and it's
ludicrous to say so.  And they're somewhat right -- you could just patch
SVN, and it might be easier than writing a Reiser4 plugin.

> The truth is most people aren't code developers, but
> document developers. odf files are a container. And it
is XML inside.

Come on, do you really expect people to read XML diffs?  Even if you
split the XML out into files/dirs based on elements, using SVN directly
would be way too arcane to people who are used to what word processors
already do -- it's something called "Track Changes".

Fire up OpenOffice and check out the Edit->Changes menu.  Word has a
similar feature.  Not as powerful, maybe, but most people are not
collaborative document developers, either.

> But just about just about every program or script
> would be better off seening the odf as a compressed
> directory.

Maybe, maybe not.

> Yes it would be really wonderful, if we could just see
> directories as file and files as directories. Which of
> course means a file and a directory are one in the
> same.

Ever use OS X?  It does this, to some extent, in Finder, which supports
the lkml point that doing this in the filesystem, or anywhere in the
kernel, is unnecessary and a bad idea.

> As things stand now the way forward seams to be per
> application program mime types. Simple right, but it
> is not because, applications tools like svn, brz,

There are two OS X file types that I know of, and probably quite a few
more, which are actually stored on disk as folders, which is why most
Mac software is distributed as disk images or zipfiles.  One is the
Application type (.app, though Finder hides the extension) and the other
is the MPKG type (whatever it stands for, extension is .mpkg).

Basically, they appear as ordinary files to Finder, which means that
most of the time, you cannot see that there are files inside them.  You
double click on a .app, and it runs a script in a predefined relative
location inside the folder.  Double click on a .mpkg, and it launches
their installer program.  Drag them around and they behave like files in
every way, except that you cannot email them, upload them to a web page,
or interact with anywhere other than your local Mac system which expects
single files.  But when you run into that, just zip them.

But if you want, you can right-click on them (or control+click) and -- I
forget which option it is, but you can browse inside the package.



By the way, Hans, Apple has beaten you by quite a bit for at least some
of the functionality we've discussed.  You can do operations on Search
Folders easily, which work by using Spotlight (an indexed fulltext local
system search engine).  You can have files-as-directories, to a point.
There are generic ways of getting at metadata, and they are done as
plugins -- Spotlight plugins, anyway.

I'd much rather use the Reiser4 described in the whitepaper, of course,
and I am getting sick of the lack of decent package management for my
Mac, so I'll be adding a Linux boot.  I'm curious to see if Reiser4 is
stable on PowerPC -- this is a year-old G4, I missed the Intel cores by
just a few short months...


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 890 bytes --]

  parent reply	other threads:[~2006-07-26  0:08 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-25  8:27 our 2.6.17 patch is not stable, please be warned Hans Reiser
2006-07-25 13:35 ` Viewing files as directories Timothy Webster
2006-07-25 16:22   ` Nate Diller
2006-07-26  1:25     ` Alexander G. M. Smith
2006-07-26  0:08   ` David Masover [this message]
2006-07-26  2:39     ` Toby Thain
2006-07-26  2:39       ` Toby Thain

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=44C6B283.9010703@slaphack.com \
    --to=ninja@slaphack.com \
    --cc=reiser@namesys.com \
    --cc=reiserfs-list@namesys.com \
    --cc=tdwebste2@yahoo.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.