Whamcloud - gitweb
LU-4416 osd-ldiskfs: vfs structs use fully typed uid/gid 61/10161/12
authorJeff Mahoney <jeffm@suse.com>
Fri, 30 May 2014 13:54:57 +0000 (09:54 -0400)
committerOleg Drokin <oleg.drokin@intel.com>
Wed, 4 Jun 2014 23:04:32 +0000 (23:04 +0000)
commit5ecb7fd0b0af45a94af94ddaaa4f4fe1e59162bf
treecccb353f1619209fe99d3e7a277f80bbcc29e2b0
parentb6332b5c0dfe28d6b574e206ae651262337a8309
LU-4416 osd-ldiskfs: vfs structs use fully typed uid/gid

Since Linux 3.5, struct inode and iattr have used type kuid_t
and kgid_t for uids and gids. There was a compatibility mode
to avoid build failures with older code but it was removed in
3.14. Furthermode, SLES12 builds with UIDGID_STRICT_TYPE_CHECKS
enabled, and needs to use the shim interfaces to build.

This patch provides the shims for older releases without them.

Signed-off-by: Jeff Mahoney <jeffm@suse.com>
Signed-off-by: James Simmons <uja.ornl@gmail.com>
Change-Id: If4c70b10b4bc13aa90d729d56b25edbe1f52fa98
Reviewed-on: http://review.whamcloud.com/10161
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: Peng Tao <bergwolf@gmail.com>
Reviewed-by: Bob Glossman <bob.glossman@intel.com>
Reviewed-by: Oleg Drokin <oleg.drokin@intel.com>
libcfs/autoconf/lustre-libcfs.m4
lustre/osd-ldiskfs/osd_handler.c
lustre/osd-ldiskfs/osd_internal.h
lustre/osd-ldiskfs/osd_io.c