Re: An idea .... with code

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: jassi brar
Date: Wednesday, August 27, 2008 - 6:24 pm

--- On Wed, 8/27/08, Andi Kleen <andi@firstfloor.org> wrote:

 Cryptoloop? No, my code isn't the 'same' as loop.c and hence can't provide for cryptoloop. I lose, you win :)
 Cryptoloop was designed so b'coz 'loop' feature was available, not the other way round. Had we not had '-o loop', developers would have devised mechanism for encrypting block devices rather than exploiting the -o loop hack. In retrospect, it seems Cryptoloop was a bad design based upon a hack.
 Encryption? Yes, my code does provide a way for it. It supports better dm-crypt/LUKS off the shelf.

 Loop.c sure provides more 'features' but the point is that we can make do without them, which only adds to the complexity. A simpler and more generic driver could do us equal good.

 I see one mail from Andrew Morton suggesting removal of cryptoloop altogether in order to ramp up its obsoletion! I am only providing a more-transparent-way of using dm-crypt. 
 
I assume the concede Kasper's point on 'offset' feature of loop.c.

Anyways, seems we are moving from discussion to debate. You've got the whole picture and now its purely your call to approve of it or not.

 Better still, you could suggest how to make it better: we are for sure gonna drop cryptoloop for dm-crypt. What wud we do with the then-unnecessary crypt support of loop.c?

 Or maybe, for the time being, it would be better to modify Loop.c to allow for runtime alloc/free of as many resources as needed and provide for sysfs interface to add/remove 'loop' rather than ioctls?

I had an idea and i cooked up a code. I wanted to put it somewhere for someone to stumble upon the idea sometime. I am done.

Best Regards,
-Jassi



      
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
An idea .... with code, jassi brar, (Sun Aug 24, 1:53 am)
[PATCH 00/18] merge apic_32.c and apic_64.c, Yinghai Lu, (Sun Aug 24, 2:01 am)
[PATCH 03/18] x86: apic - unify setup_apicpmtimer, Yinghai Lu, (Sun Aug 24, 2:01 am)
[PATCH 05/18] x86: apic - unify setup_local_APIC, Yinghai Lu, (Sun Aug 24, 2:01 am)
[PATCH 08/18] x86: apic_xx.c order variables, Yinghai Lu, (Sun Aug 24, 2:01 am)
[PATCH 09/18] x86: use HAVE_X2APIC in apic_64.c, Yinghai Lu, (Sun Aug 24, 2:01 am)
[PATCH 11/18] x86: make apic_32/64.c more like, Yinghai Lu, (Sun Aug 24, 2:01 am)
[PATCH 12/18] x86: merge APIC_init_uniprocessor, Yinghai Lu, (Sun Aug 24, 2:01 am)
[PATCH 14/18] x86: merge header files in apic_xx.c, Yinghai Lu, (Sun Aug 24, 2:01 am)
[PATCH 17/18] x86: apic copy apic_64.c to apic_32.c, Yinghai Lu, (Sun Aug 24, 2:01 am)
Re: [PATCH 00/18] merge apic_32.c and apic_64.c, Ingo Molnar, (Sun Aug 24, 2:14 am)
Re: [PATCH 00/18] merge apic_32.c and apic_64.c, Ingo Molnar, (Sun Aug 24, 5:16 am)
Re: An idea .... with code, Jochen Voß, (Mon Aug 25, 5:22 am)
Re: An idea .... with code, Marcin Slusarz, (Mon Aug 25, 1:53 pm)
Re: An idea .... with code, Bill Davidsen, (Mon Aug 25, 7:47 pm)
Re: An idea .... with code, Andi Kleen, (Tue Aug 26, 1:24 am)
Re: An idea .... with code, Alexey Dobriyan, (Tue Aug 26, 3:44 am)
Re: An idea .... with code, Andi Kleen, (Tue Aug 26, 4:08 am)
Re: An idea .... with code, jassi brar, (Wed Aug 27, 12:24 am)
Re: An idea .... with code, Andi Kleen, (Wed Aug 27, 12:47 am)
Re: An idea .... with code, David Newall, (Wed Aug 27, 2:57 am)
Re: An idea .... with code, Andi Kleen, (Wed Aug 27, 3:01 am)
Re: An idea .... with code, jassi brar, (Wed Aug 27, 5:38 am)
Re: An idea .... with code, Andi Kleen, (Wed Aug 27, 5:47 am)
Re: An idea .... with code, Kasper Sandberg, (Wed Aug 27, 7:49 am)
Re: An idea .... with code, Andi Kleen, (Wed Aug 27, 8:02 am)
Re: An idea .... with code, jassi brar, (Wed Aug 27, 6:24 pm)
Re: An idea .... with code, Kasper Sandberg, (Thu Aug 28, 2:41 am)
Re: An idea .... with code, Bill Davidsen, (Fri Aug 29, 7:57 pm)