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

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



CVSROOT:	/cvs/dm
Module name:	dmraid
Changes by:	heinzm 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;
+					}
 				}
 			}
 		}


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