Whamcloud - gitweb
LU-1866 misc: fix some issues found during LFSCK
[fs/lustre-release.git] / lustre / utils / llog_reader.c
index 101484c..748be6c 100644 (file)
@@ -27,7 +27,7 @@
  * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  *
- * Copyright (c) 2011, Whamcloud, Inc.
+ * Copyright (c) 2011, 2012, Intel Corporation.
  */
 /*
  * This file is part of Lustre, http://www.lustre.org/
@@ -172,7 +172,7 @@ int llog_pack_buffer(int fd, struct llog_log_hdr **llog,
                                        cur_rec->lrh_type, cur_rec->lrh_len);
                 } else {
                         printf("Bit %d of %d not set\n", idx, recs_num);
-                        cur_rec->lrh_padding = CANCELLED;
+                        cur_rec->lrh_id = CANCELLED;
                         /* The header counts only set records */
                         i--;
                 }
@@ -466,7 +466,7 @@ void print_records(struct llog_rec_hdr **recs, int rec_number)
 
                 lopt = le32_to_cpu(recs[i]->lrh_type);
 
-                if (recs[i]->lrh_padding == CANCELLED)
+                if (recs[i]->lrh_id == CANCELLED)
                         printf("NOT SET ");
 
                 if (lopt == OBD_CFG_REC) {