Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
LU-1302 llog: llog test update and fixes
[fs/lustre-release.git]
/
lustre
/
obdclass
/
llog_swab.c
diff --git
a/lustre/obdclass/llog_swab.c
b/lustre/obdclass/llog_swab.c
index
3a49fdc
..
d2197cf
100644
(file)
--- a/
lustre/obdclass/llog_swab.c
+++ b/
lustre/obdclass/llog_swab.c
@@
-144,6
+144,16
@@
void lustre_swab_llog_rec(struct llog_rec_hdr *rec)
tail = &lur->lur_tail;
break;
}
tail = &lur->lur_tail;
break;
}
+ case MDS_UNLINK64_REC:
+ {
+ struct llog_unlink64_rec *lur =
+ (struct llog_unlink64_rec *)rec;
+
+ lustre_swab_lu_fid(&lur->lur_fid);
+ __swab32s(&lur->lur_count);
+ tail = &lur->lur_tail;
+ break;
+ }
case CHANGELOG_REC:
{
struct llog_changelog_rec *cr = (struct llog_changelog_rec*)rec;
case CHANGELOG_REC:
{
struct llog_changelog_rec *cr = (struct llog_changelog_rec*)rec;
@@
-184,14
+194,14
@@
void lustre_swab_llog_rec(struct llog_rec_hdr *rec)
struct llog_setattr64_rec *lsr =
(struct llog_setattr64_rec *)rec;
struct llog_setattr64_rec *lsr =
(struct llog_setattr64_rec *)rec;
-
__swab64s(&lsr->lsr_oid);
-
__swab32
s(&lsr->lsr_oseq);
-
__swab32s(&lsr->lsr_uid);
+ __swab64s(&lsr->lsr_oid);
+
__swab64
s(&lsr->lsr_oseq);
+ __swab32s(&lsr->lsr_uid);
__swab32s(&lsr->lsr_uid_h);
__swab32s(&lsr->lsr_uid_h);
-
__swab32s(&lsr->lsr_gid);
+ __swab32s(&lsr->lsr_gid);
__swab32s(&lsr->lsr_gid_h);
tail = &lsr->lsr_tail;
__swab32s(&lsr->lsr_gid_h);
tail = &lsr->lsr_tail;
-
break;
+ break;
}
case OBD_CFG_REC:
/* these are swabbed as they are consumed */
}
case OBD_CFG_REC:
/* these are swabbed as they are consumed */