Whamcloud - gitweb
LU-9354 utils: fix lfs.c compile for PPC 27/26727/2
authorAndreas Dilger <andreas.dilger@intel.com>
Wed, 19 Apr 2017 02:53:00 +0000 (20:53 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 26 Apr 2017 03:38:22 +0000 (03:38 +0000)
Fix the lfs_setstripe_args parameter to use "unsigned long long"
for lsa_comp_end so that when passed to llapi_parse_size() it is
the correct type.  PPC annoyingly uses "unsigned long" for __u64
while most other architectures use "unsigned long long".

Test-Parameters: trivial
Signed-off-by: Andreas Dilger <andreas.dilger@intel.com>
Change-Id: I27b724d5eab5f4669bde1f5fb44c75a1051ba7bd
Reviewed-on: https://review.whamcloud.com/26727
Tested-by: Jenkins
Reviewed-by: Minh Diep <minh.diep@intel.com>
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: James Simmons <uja.ornl@yahoo.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
lustre/utils/lfs.c

index c262cc1..63194f3 100644 (file)
@@ -1048,7 +1048,7 @@ static int verify_pool_name(char *prog_name, char *pool_name)
 }
 
 struct lfs_setstripe_args {
-       __u64                    lsa_comp_end;
+       unsigned long long       lsa_comp_end;
        unsigned long long       lsa_stripe_size;
        int                      lsa_stripe_count;
        int                      lsa_stripe_off;