Whamcloud - gitweb
LU-541 Fix getstripe interop with 2.0 server
authorBobi Jam <bobijam@whamcloud.com>
Thu, 28 Jul 2011 09:28:11 +0000 (17:28 +0800)
committerJohann Lombardi <johann@whamcloud.com>
Mon, 29 Aug 2011 11:14:20 +0000 (07:14 -0400)
commit672005075b3c48c7b67fb35bd4c607f8eb97e1e1
tree711c57e87404810aa0d332296c354646b6228806
parent999530eeff5849183d8849688fd0f54dbd62c0f3
LU-541 Fix getstripe interop with 2.0 server

* 2.0 server has changed dir getstripe rule as follows:
          If the directory in question DOES NOT have it's EA set, AND it
          IS NOT the root directory of the filesystem, then no EA values
          are returned to userspace. Rather, an error is returned from
          the ioctl and errno is set to ENODATA.
  1.8 client needs adapt to this rule
* fix liblustreapi.c usage of errno and rc, llapi_xxx() functions should
  return negative value on error.

Change-Id: If81a456209d5985aae7f20569eba1ac45ef576b1
Signed-off-by: Bobi Jam <bobijam@whamcloud.com>
Reviewed-on: http://review.whamcloud.com/1154
Tested-by: Hudson
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Johann Lombardi <johann@whamcloud.com>
Tested-by: Maloo <whamcloud.maloo@gmail.com>
lustre/include/lustre/liblustreapi.h
lustre/tests/ll_dirstripe_verify.c
lustre/utils/lfs.c
lustre/utils/liblustreapi.c