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 15:12:04 +0400	[thread overview]
Message-ID: <4333E304.5050009@namesys.com> (raw)
In-Reply-To: <200509222338.20049.namesys.Sch@ttgen.net>

Fred Schaettgen wrote:

>On Thursday, 22. September 2005 22:03, Edward Shishkin wrote:
>  
>
>>Fred Schaettgen wrote:
>>    
>>
>>>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: 
>>    
>>
>
>It was just meant as an example for another possible feature of a file plugin, 
>so let's forget about if it's slow or not for the moment or if it even makes 
>no sense at all.
>Replace it by any other file plugin you can imagine. Like a virus-scanning 
>file plugin, a change log plugin, a versioned-file plugin, whatever.
>
>The question was more about combining new features for single files in 
>general. At some point I might want to have a file which is both compressed 
>and which supports feature X at the same time.
>  
>

Usually new features are incompartible with the disign of existing
objects, so I think there is no any general policy.

>But I can't do that (at least I think so). I can either patch the 
>cryptcompress plugin, which is certainly not the right way(tm).
>Or I can make up another file plugin, but then it can't be compressed at the 
>same time. If we have as few as five different file plugins, such a 
>limitation might hurt already.
>
>There seems to be no way to create sort of a pipeline of plugins, it uses 
>either one file plugin or another one.
>
>...
>  
>
>>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.
>>    
>>
>...
>  
>
>>>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.
>>    
>>
>
>I haven't heard about transform plugins at all so far. Are they meant to be 
>used by the cryptcompress plugin only or is this a broader concept that can 
>they be used by regular files too?
>
>Sounds like it's a cryptcompress special, but "transform plugin" sounds like 
>what I'm missing. It would be very heplful if I could attach any number of 
>transform plugins to any single file.
>  
>

Each file has a so-called plugin set, so there will be a common mechanism of
assignment/inheritance which is under development

>Like that: VFS -> virus scanner -> change monitor -> versioning -> compression 
>-> encryption -> checksum -> DISK
>
>Let's hope that no one takes the the virus scanner part literally, it has the 
>potential of feeding the reiser-eating trolls.
>It's not about being able to create endless transformation pipelines and 
>hundreds of plugins, but just the mere possibility to create an short 
>arbitrary pipeline whenever it makes sense.
>
>  
>
>>>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.
>>    
>>
>
>Right, it isn't, because it's not possible to combine them. 
>But if I do want to combine them, then what?
>
>Hm, on second thought... forget about it for the moment. I shouldn't waste 
>your time while reiser4 is trying so hard to find it's way into the mainline 
>kernel. Let's hope that this fight will be over soon.
>
>Fred
>
>
>  
>


      reply	other threads:[~2005-09-23 11:12 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
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 [this message]

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=4333E304.5050009@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.