Re: partitioned raid issues

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Op dinsdag 17-02-2009 om 08:20 uur [tijdzone +1100], schreef NeilBrown:

> Here is that patch against 2.6.28
> 
> NeilBrown
> 
> iff --git a/block/genhd.c b/block/genhd.c
> index 2f7feda..c7ad108 100644
> --- a/block/genhd.c
> +++ b/block/genhd.c
> @@ -1072,6 +1072,14 @@ dev_t blk_lookup_devt(const char *name, int partno)
>  		if (strcmp(dev->bus_id, name))
>  			continue;
> 
> +		if (partno < disk->minors) {
> +			/* We need to return the right devno, even
> +			 * if the partition doesn't exist yet.
> +			 */
> +			devt = MKDEV(MAJOR(dev->devt),
> +				     MINOR(dev->devt) + partno);
> +			break;
> +		}
>  		part = disk_get_part(disk, partno);
>  		if (part) {
>  			devt = part_devt(part);
> 


And the results are:
BIOS EBDA/lowmem at: 0009d000/0009cc00
Linux version 2.6.28.2 (root@astra) (gcc version 3.4.6) #4 SMP Mon Feb
16 22:40:39 CET 2009
KERNEL supported cpus:

<snip>


md: bind<sda1>
md: bind<sdb1>
md: running: <sdb1><sda1>
raid1: raid set md_d0 active with 2 out of 2 mirrors
md: ... autorun DONE.
md_d0: p1 p2 p3 p4 < p5 p6 p7 >
ReiserFS: md_d0p1: found reiserfs format "3.6" with standard journal
ReiserFS: md_d0p1: using ordered data mode
ReiserFS: md_d0p1: journal params: device md_d0p1, size 8192, journal
first block 18, max trans len 1024, max batch 900, max commit age 30,
max trans age 30
ReiserFS: md_d0p1: checking transaction log (md_d0p1)
ReiserFS: md_d0p1: Using r5 hash to sort names
VFS: Mounted root (reiserfs filesystem) readonly.
Freeing unused kernel memory: 304k freed


So the patch works :)

I suggest it is taken along in 2.6.28.6 and 2.6.29

Cheers,

Rudy

--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux