[Midnightbsd-cvs] src [8691] trunk/sys/geom/raid/md_intel.c: windows driver writes related volume IDs to metadata file.d Use that value as a hint for device number
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Sun Sep 25 18:08:46 EDT 2016
Revision: 8691
http://svnweb.midnightbsd.org/src/?rev=8691
Author: laffer1
Date: 2016-09-25 18:08:46 -0400 (Sun, 25 Sep 2016)
Log Message:
-----------
windows driver writes related volume IDs to metadata file.d Use that value as a hint for device number
Modified Paths:
--------------
trunk/sys/geom/raid/md_intel.c
Modified: trunk/sys/geom/raid/md_intel.c
===================================================================
--- trunk/sys/geom/raid/md_intel.c 2016-09-25 22:08:20 UTC (rev 8690)
+++ trunk/sys/geom/raid/md_intel.c 2016-09-25 22:08:46 UTC (rev 8691)
@@ -1150,7 +1150,7 @@
for (i = 0; i < meta->total_volumes; i++) {
mvol = intel_get_volume(meta, i);
mmap = intel_get_map(mvol, 0);
- vol = g_raid_create_volume(sc, mvol->name, -1);
+ vol = g_raid_create_volume(sc, mvol->name, mvol->tid - 1);
pv = malloc(sizeof(*pv), M_MD_INTEL, M_WAITOK | M_ZERO);
pv->pv_volume_pos = i;
pv->pv_cng = (mvol->state & INTEL_ST_CLONE_N_GO) != 0;
@@ -2352,6 +2352,7 @@
mvol->total_sectors = vol->v_mediasize / sectorsize;
mvol->state = (INTEL_ST_READ_COALESCING |
INTEL_ST_WRITE_COALESCING);
+ mvol->tid = vol->v_global_id + 1;
if (pv->pv_cng) {
mvol->state |= INTEL_ST_CLONE_N_GO;
if (pv->pv_cng_man_sync)
More information about the Midnightbsd-cvs
mailing list