dmraid/lib/format/ataraid pdc.c

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

 



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

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel

[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux