[dm-devel] dmraid/lib/format/ataraid pdc.c

heinzm at sourceware.org heinzm at sourceware.org
Mon Dec 14 14:33:14 UTC 2009


CVSROOT:	/cvs/dm
Module name:	dmraid
Changes by:	heinzm at sourceware.org	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

--- dmraid/lib/format/ataraid/pdc.c	2009/11/02 13:20:40	1.7
+++ dmraid/lib/format/ataraid/pdc.c	2009/12/14 14:33:13	1.8
@@ -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;
+					}
 				}
 			}
 		}




More information about the dm-devel mailing list