Skip to contentSkip to conversation

dmraid/lib/format/ataraid pdc.c

PATCH [email protected] 1 participant 1 message Dec 14, 2009 Device mapper

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/dm
Module name: dmraid
Changes by: [email protected] 2009-12-14 14:33:14

Modified files:
lib/format/ataraid: pdc.c

Log message:
pdc: fix offset.dat file (Neil Brown)

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/dmraid/lib/format/ataraid/pdc.c.diff?cvsroot=dm&r1=1.7&r2=1.8

lib/format/ataraid/pdc.c +4 -1
@@ -202,8 +202,11 @@
 							break;
 
 					/* Memorize main metadata sector. */
-					} else if (!info->u32)
+					} else if (!info->u32) {
 						info->u32 = *s;
+						*offset = sub ? di->sectors - *s :
+								*s;
+					}
 				}
 			}
 		}