2002-10-16 18:54:44

by David Mansfield

[permalink] [raw]
Subject: [PATCH] (quickfix) allow md devices to be used in 2.5.43


Al, list,

In order to accessing my md devices in 2.5.43, i needed the attached
patch to fs/block_dev.c. WARNING: it's probably very broken, because I
don't know what I'm doing. I essentially reverted most of the changes to
the do_open function, allowing the open() method of a device without an
attached gendisk to be called.

In the md scheme of things, the gendisk is created in the md_run stage,
which is only possible via ioctl after a successful open of the block
device.

However, something else is broken with the change to md.c, which detects
whether the disk is idle by checking the number of sectors read/written to
the disk.

I'm going to take a look at that now.

David

--
/==============================\
| David Mansfield |
| [email protected] |
\==============================/


Attachments:
00-bd-open.patch (1.11 kB)