All of lore.kernel.org
 help / color / mirror / Atom feed
From: Edward Shishkin <edward@namesys.com>
To: Fred Schaettgen <namesys.Sch@ttgen.net>
Cc: reiserfs-list@namesys.com
Subject: Re: Will I need to re-format my partition for using the compression plugin?
Date: Fri, 23 Sep 2005 00:03:32 +0400	[thread overview]
Message-ID: <43330E14.9050209@namesys.com> (raw)
In-Reply-To: <200509221951.38302.namesys.Sch@ttgen.net>

Fred Schaettgen wrote:

>On Thursday, 22. September 2005 18:41, Edward Shishkin wrote:
>  
>
>>Grzegorz Jaśkiewicz wrote:
>>    
>>
>>>I think there should be file attribute that says whether it is
>>>compressed/whatever/ or not.
>>>      
>>>
>>Right. All the plugins responsible for compression, etc.. will be observed
>>via pseudo-file interface
>>
>>    
>>
>>>This way, it would be possible to
>>>compress already existing files. At least, if filesystem is so
>>>flexible as everyone say, it would be possible.
>>>      
>>>
>>It will be possible to turn on/off compression at any
>>time if a file is powered by cryptcompress plugin id.
>>AFAIK changing file plugin id will be impossible (at least in reiser4)
>>    
>>
>
>I don't quite understand how the file plugin concept scales once we get more 
>of them. For instance if I want to have an additional attribute attached to 
>my files, which contains a checksum that is kept up to date whenever the file 
>is changed. I'd have to use a special file plugin for those files then, is 
>this correct?
>
Yes. It is impossible to implement all features in one file plugin. 
Checksuming means a low
performance: in order to read some bytes of such file you will need 
first to read the whole file
to check a checksum (isnt it?). So it will be suitable for a small 
number of special files.
To write this new file plugin you will want to use already existing 
cipher and compression
transform plugins (dont mix it with cryptcompress file plugin which also 
calls those plugins)
to compress and encrypt your checksumed file.
 

>In that case it's always an exclusive decision if I want my files checksummed, 
>compressed, encrypted, monitored for changes or whatever.
>
>Apparently the encryption and the compression is realized with one single file 
>plugin, so it seems that there is indeed no way to have both features 
>implemented as separate plugins.
>

Why do you need separate ones? Having only a cryptcompress file plugin 
you will be able
to create files which are either only encrypted or only compressed, just 
set the transform
plugins properly.

> Or is there another reason why you packed 
>both things into one plugin?
>

Because sometimes it is useful to compress data before encryption since 
compression
destroys vulnerable regular structure of some special files (like *.html)

>If most new file features have to be implemented 
>as part of one single plugin,
>

Then this plugin will look like a monster ;)
Not necessarily. On the oher hand, creating a separate file plugin for 
each feature
imho is not a good idea.

> then the whole concept of using file plugin
>starts looking a bit less promising in my eyes. 
>I hope I'm just wrong or the plugin interface is not set in stone yet ;)
>
>Fred
>
>
>  
>


  reply	other threads:[~2005-09-22 20:03 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-20 13:31 Will I need to re-format my partition for using the compression plugin? Clemens Eisserer
2005-09-20 13:58 ` Edward Shishkin
2005-09-20 15:49 ` Vladimir V. Saveliev
2005-09-20 16:12   ` Edward Shishkin
2005-09-20 19:19     ` Clemens Eisserer
2005-09-20 19:38       ` Tomasz Chmielewski
2005-09-20 19:43         ` Edward Shishkin
2005-09-22 15:24           ` Grzegorz Jaśkiewicz
2005-09-22 16:41             ` Edward Shishkin
2005-09-22 17:51               ` Fred Schaettgen
2005-09-22 20:03                 ` Edward Shishkin [this message]
2005-09-22 20:11                   ` David Masover
2005-09-22 20:49                     ` Valdis.Kletnieks
2005-09-22 20:54                       ` michael chang
2005-09-22 21:05                         ` Valdis.Kletnieks
2005-09-23  9:00                         ` Edward Shishkin
2005-09-22 22:13                       ` Gregory Maxwell
2005-09-23  6:08                         ` Valdis.Kletnieks
2005-09-22 20:38                   ` Valdis.Kletnieks
2005-09-22 20:54                   ` Gregory Maxwell
2005-09-22 21:33                   ` PFC
2005-09-22 21:38                   ` Fred Schaettgen
2005-09-23 11:12                     ` Edward Shishkin

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=43330E14.9050209@namesys.com \
    --to=edward@namesys.com \
    --cc=namesys.Sch@ttgen.net \
    --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.