All of lore.kernel.org
 help / color / mirror / Atom feed
From: David Masover <ninja@slaphack.com>
To: Pysiak Satriani <pysiak.satriani@wp.pl>
Cc: "reiserfs-list@namesys.com" <reiserfs-list@namesys.com>
Subject: Re: storing images thumbnails as pseudo files?
Date: Fri, 21 Jul 2006 15:40:56 -0500	[thread overview]
Message-ID: <44C13BD8.4060103@slaphack.com> (raw)
In-Reply-To: <5710000871.20060721212932@wp.pl>

Pysiak Satriani wrote:
> Hello,
> 
> suppose pseudo files, file-as-directory are on my r4 partition and are usuable.
> 
> Does namesys' vision allow things like storing image thumbnails "inside the file
> itself" ?

Ultimately, yes.  Currently, I don't know.

The most common use of pseudofiles, for instance, is to access metadata 
we already have.  For instance, Reiser4 stores file permissions the same 
way as anyone else, but you can access foo/..pseudo/rwx.

That's an example.  I haven't been in this community for a year or more, 
so I have no idea what the delimiter is.

For now, I don't think you can have arbitrary normal files within files, 
just metadata that has a plugin already.  You might try something like 
this, though:


$ mkdir -p .thumbs/test.jpg

// create 150px thumbnail
$ jpgtn -s 150 -H test.jpg

// move the thumbnail "into" the file
$ mv tn_test .thumbs/test.jpg/150px

// the same but a 100px thumbnail
$ jpgtn -s 100 -H test.jpg
$ mv tn_test .thumbs/test.jpg/100px


Ultimately, the Namesys vision would allow for something like this to 
happen:

$ cp /mnt/camera/test.jpg .

Then your link would look something like this:

<a href="test.jpg"><img src="test.jpg/.../thumbs/150px.png" /></a>

The thumbnail would be generated by the FS (probably by calling jpgtn or 
a similar tool) the first time it was accessed, then cached until disk 
space is needed for something else.

The rest of the kernel development list seems to believe that such 
functionality would be better achieved by hacking glibc or Apache to 
emulate that, rather than having it be a feature of the filesystem itself.

Disclaimer:  I don't speak for Namesys, and I don't work here.  While 
I'm pretty confident I understand their vision, the final word on 
anything Reiser is always from Hans Reiser.

  reply	other threads:[~2006-07-21 20:40 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-07-21 19:29 storing images thumbnails as pseudo files? Pysiak Satriani
2006-07-21 20:40 ` David Masover [this message]
2006-07-22  0:46   ` Hans Reiser
2006-07-22 15:17     ` Pysiak Satriani
2006-07-22  0:56 ` 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=44C13BD8.4060103@slaphack.com \
    --to=ninja@slaphack.com \
    --cc=pysiak.satriani@wp.pl \
    --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.