![]() | ||||||||||
Messages in this thread Patch in this message |
Okay,
It seems that I f**ked up the patch creation. Actually only the first
chunk of the patch is correct. New version of the patch attached.
Best regards/MvG,
Gertjan.
Gertjan van Wingerde wrote:
> Hi,
>
> The attached patch to 2.5.2-pre9 is necessary to get it to compile and
> to clean up some NODEV vs. mk_kdev(0, 0) usages.
>
>
--
MvG,
Gertjan
----------
Gertjan van Wingerde
Geessinkweg 177
7544 TX Enschede
The Netherlands
E-mail: gwingerde@home.nl
diff -u --recursive linux-2.5.2-pre8/drivers/md/md.c linux-2.5.x/drivers/md/md.c
--- linux-2.5.2-pre8/drivers/md/md.c Sun Jan 6 11:28:53 2002
+++ linux-2.5.x/drivers/md/md.c Sun Jan 6 11:30:03 2002
@@ -641,7 +641,7 @@
int err = 0;
struct block_device *bdev;
- bdev = bdget(rdev->dev);
+ bdev = bdget(kdev_t_to_nr(rdev->dev));
if (!bdev)
return -ENOMEM;
err = blkdev_get(bdev, FMODE_READ|FMODE_WRITE, 0, BDEV_RAW); | |||||||||
| Last update: 2005-03-22 11:15 [W:0.197 / U:0.350 seconds] ©2003-2008 Jasper Spaans | ||||||||||