* Why is the rewritten ramdisk driver called brd instad of rd
@ 2008-03-21 13:05 Christoph Hellwig
2008-05-27 9:28 ` Petr Tesarik
0 siblings, 1 reply; 5+ messages in thread
From: Christoph Hellwig @ 2008-03-21 13:05 UTC (permalink / raw)
To: torvalds, npiggin; +Cc: linux-kernel
Any reason why the rewritten ramdisk driver has a new name? It's for
all matters an inplace replacement of the old rd driver so it should
be called rd.c / rd.ko to not confused instaler/developers/etc.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Why is the rewritten ramdisk driver called brd instad of rd
2008-03-21 13:05 Why is the rewritten ramdisk driver called brd instad of rd Christoph Hellwig
@ 2008-05-27 9:28 ` Petr Tesarik
2008-05-28 6:11 ` Nick Piggin
0 siblings, 1 reply; 5+ messages in thread
From: Petr Tesarik @ 2008-05-27 9:28 UTC (permalink / raw)
To: Christoph Hellwig; +Cc: torvalds, npiggin, linux-kernel
On Fri, 2008-03-21 at 14:05 +0100, Christoph Hellwig wrote:
> Any reason why the rewritten ramdisk driver has a new name? It's for
> all matters an inplace replacement of the old rd driver so it should
> be called rd.c / rd.ko to not confused instaler/developers/etc.
I think it's because the old rd played some dirty tricks with the page
cache, while the reworked one is a straightforward implementation of a
normal _b_lock device -> hence the "b".
No guarantee of correctness.
Petr Tesarik
> --
> To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
> Please read the FAQ at http://www.tux.org/lkml/
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Why is the rewritten ramdisk driver called brd instad of rd
2008-05-27 9:28 ` Petr Tesarik
@ 2008-05-28 6:11 ` Nick Piggin
2008-06-03 11:09 ` Jan Engelhardt
0 siblings, 1 reply; 5+ messages in thread
From: Nick Piggin @ 2008-05-28 6:11 UTC (permalink / raw)
To: Petr Tesarik; +Cc: Christoph Hellwig, torvalds, linux-kernel
On Tue, May 27, 2008 at 11:28:00AM +0200, Petr Tesarik wrote:
> On Fri, 2008-03-21 at 14:05 +0100, Christoph Hellwig wrote:
> > Any reason why the rewritten ramdisk driver has a new name? It's for
> > all matters an inplace replacement of the old rd driver so it should
> > be called rd.c / rd.ko to not confused instaler/developers/etc.
>
> I think it's because the old rd played some dirty tricks with the page
> cache, while the reworked one is a straightforward implementation of a
> normal _b_lock device -> hence the "b".
>
> No guarantee of correctness.
Yeah it was a rwrite from scratch and it lived with the rd.c code for
a while (although maybe never in mainline). I guess it might be good
idea to rename it back to rd?
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Why is the rewritten ramdisk driver called brd instad of rd
2008-05-28 6:11 ` Nick Piggin
@ 2008-06-03 11:09 ` Jan Engelhardt
2008-06-04 15:18 ` Nick Piggin
0 siblings, 1 reply; 5+ messages in thread
From: Jan Engelhardt @ 2008-06-03 11:09 UTC (permalink / raw)
To: Nick Piggin; +Cc: Petr Tesarik, Christoph Hellwig, torvalds, linux-kernel
On Wednesday 2008-05-28 08:11, Nick Piggin wrote:
>On Tue, May 27, 2008 at 11:28:00AM +0200, Petr Tesarik wrote:
>> On Fri, 2008-03-21 at 14:05 +0100, Christoph Hellwig wrote:
>> > Any reason why the rewritten ramdisk driver has a new name? It's for
>> > all matters an inplace replacement of the old rd driver so it should
>> > be called rd.c / rd.ko to not confused instaler/developers/etc.
>>
>> I think it's because the old rd played some dirty tricks with the page
>> cache, while the reworked one is a straightforward implementation of a
>> normal _b_lock device -> hence the "b".
>>
>> No guarantee of correctness.
>
>Yeah it was a rwrite from scratch and it lived with the rd.c code for
>a while (although maybe never in mainline). I guess it might be good
>idea to rename it back to rd?
Just add a MODULE_ALIAS("rd").
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Why is the rewritten ramdisk driver called brd instad of rd
2008-06-03 11:09 ` Jan Engelhardt
@ 2008-06-04 15:18 ` Nick Piggin
0 siblings, 0 replies; 5+ messages in thread
From: Nick Piggin @ 2008-06-04 15:18 UTC (permalink / raw)
To: Jan Engelhardt
Cc: Petr Tesarik, Christoph Hellwig, torvalds, linux-kernel, stable
On Tue, Jun 03, 2008 at 01:09:55PM +0200, Jan Engelhardt wrote:
>
> On Wednesday 2008-05-28 08:11, Nick Piggin wrote:
>
> >On Tue, May 27, 2008 at 11:28:00AM +0200, Petr Tesarik wrote:
> >> On Fri, 2008-03-21 at 14:05 +0100, Christoph Hellwig wrote:
> >> > Any reason why the rewritten ramdisk driver has a new name? It's for
> >> > all matters an inplace replacement of the old rd driver so it should
> >> > be called rd.c / rd.ko to not confused instaler/developers/etc.
> >>
> >> I think it's because the old rd played some dirty tricks with the page
> >> cache, while the reworked one is a straightforward implementation of a
> >> normal _b_lock device -> hence the "b".
> >>
> >> No guarantee of correctness.
> >
> >Yeah it was a rwrite from scratch and it lived with the rd.c code for
> >a while (although maybe never in mainline). I guess it might be good
> >idea to rename it back to rd?
>
> Just add a MODULE_ALIAS("rd").
Couldn't hurt... shall we merge this, then?
Alias brd to rd in the hope of helping legacy users. Suggested by Jan.
Signed-off-by: Nick Piggin <npiggin@suse.de>
---
Index: linux-2.6/drivers/block/brd.c
===================================================================
--- linux-2.6.orig/drivers/block/brd.c 2008-06-05 00:51:53.000000000 +1000
+++ linux-2.6/drivers/block/brd.c 2008-06-05 00:52:43.000000000 +1000
@@ -397,6 +397,7 @@ module_param(max_part, int, 0);
MODULE_PARM_DESC(max_part, "Maximum number of partitions per RAM disk");
MODULE_LICENSE("GPL");
MODULE_ALIAS_BLOCKDEV_MAJOR(RAMDISK_MAJOR);
+MODULE_ALIAS("rd");
#ifndef MODULE
/* Legacy boot options - nonmodular */
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-06-04 15:18 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-21 13:05 Why is the rewritten ramdisk driver called brd instad of rd Christoph Hellwig
2008-05-27 9:28 ` Petr Tesarik
2008-05-28 6:11 ` Nick Piggin
2008-06-03 11:09 ` Jan Engelhardt
2008-06-04 15:18 ` Nick Piggin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox