From: Andreas Dilger Date: Fri, 17 Aug 2018 18:48:44 +0000 (-0600) Subject: LU-8066 lov: fix lov.*.stripeoffset printing X-Git-Tag: 2.11.55~54 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=refs%2Fchanges%2F19%2F33019%2F3;p=fs%2Flustre-release.git LU-8066 lov: fix lov.*.stripeoffset printing The move of lov.*.stripeoffset from /proc to /sys in commit 3c900918 reverted the printing of stripeoffset from a signed value to an unsigned value, which is broken for the common value of "-1". This was previously fixed in LU-9611 commit f93276d9. Test-Parameters: trivial Signed-off-by: Andreas Dilger Change-Id: Ib61305ddbf902dd74ac0e16c0c2fe6920052ddf4 Reviewed-on: https://review.whamcloud.com/33019 Reviewed-by: Jian Yu Tested-by: Jenkins Tested-by: Maloo Reviewed-by: James Simmons Reviewed-by: Oleg Drokin --- diff --git a/lustre/lov/lproc_lov.c b/lustre/lov/lproc_lov.c index e93b6f2..fca6a8c 100644 --- a/lustre/lov/lproc_lov.c +++ b/lustre/lov/lproc_lov.c @@ -81,7 +81,7 @@ static ssize_t stripeoffset_show(struct kobject *kobj, struct attribute *attr, obd_kset.kobj); struct lov_desc *desc = &dev->u.lov.desc; - return sprintf(buf, "%llu\n", desc->ld_default_stripe_offset); + return sprintf(buf, "%lld\n", desc->ld_default_stripe_offset); } static ssize_t stripeoffset_store(struct kobject *kobj, struct attribute *attr,