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-11803 obd: replace class_uuid with linux kernel version.
[fs/lustre-release.git]
/
lustre
/
osd-ldiskfs
/
osd_scrub.c
diff --git
a/lustre/osd-ldiskfs/osd_scrub.c
b/lustre/osd-ldiskfs/osd_scrub.c
index
efe89a4
..
8d405ba
100644
(file)
--- a/
lustre/osd-ldiskfs/osd_scrub.c
+++ b/
lustre/osd-ldiskfs/osd_scrub.c
@@
-2669,8
+2669,10
@@
int osd_scrub_setup(const struct lu_env *env, struct osd_device *dev)
"failed to allocate RAM for report\n",
osd_dev2name(dev));
} else {
"failed to allocate RAM for report\n",
osd_dev2name(dev));
} else {
- class_uuid_unparse(sf->sf_uuid, old_uuid);
- class_uuid_unparse(es->s_uuid, new_uuid);
+ snprintf(old_uuid->uuid, UUID_SIZE, "%pU",
+ sf->sf_uuid);
+ snprintf(new_uuid->uuid, UUID_SIZE, "%pU",
+ es->s_uuid);
CDEBUG(D_LFSCK, "%s: UUID has been changed "
"from %s to %s\n", osd_dev2name(dev),
old_uuid->uuid, new_uuid->uuid);
CDEBUG(D_LFSCK, "%s: UUID has been changed "
"from %s to %s\n", osd_dev2name(dev),
old_uuid->uuid, new_uuid->uuid);