diff mbox

dmraid/lib/format/ataraid pdc.c

Message ID 20091214143314.18834.qmail@sourceware.org (mailing list archive)
State New, archived
Headers show

Commit Message

heinzm@sourceware.org Dec. 14, 2009, 2:33 p.m. UTC
None
diff mbox

Patch

--- 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;
+					}
 				}
 			}
 		}