Whamcloud - gitweb
LU-3867 utils: llapi_create_volatile_idx uses 0 instead idx 13/7613/4
authorJames Nunez <james.a.nunez@intel.com>
Fri, 1 Nov 2013 18:18:05 +0000 (12:18 -0600)
committerOleg Drokin <oleg.drokin@intel.com>
Mon, 2 Dec 2013 12:55:54 +0000 (12:55 +0000)
commitd5a07cd08ad07fe0de0c5bda2b3b65c36461f601
treea214c27db27fe62f5d96653749042be42efe07d0
parent2120ef466f9748774086177a3119fe641067a53d
LU-3867 utils: llapi_create_volatile_idx uses 0 instead idx

If llapi_create_volatile_idx() is passed an MDT index other than
-1, it always uses 0 as the MDT index rather than the one provided.

This patch removes the use of LUSTRE_VOLATILE_IDX and uses
LUSTRE_VOLATILE_HDR with the MDT index instead, uses the provided
MDT index in the volatile file name and uses base 16 when reading
the MDT index from the file name using strtoul.

Signed-off-by: James Nunez <james.a.nunez@intel.com>
Signed-off-by: Bobbie Lind <bobbie.j.lind@intel.com>
Change-Id: I27e2beb8524683aba07c48297614dd02d7957af4
Reviewed-on: http://review.whamcloud.com/7613
Tested-by: Jenkins
Tested-by: Maloo <hpdd-maloo@intel.com>
Reviewed-by: John L. Hammond <john.hammond@intel.com>
Reviewed-by: Andreas Dilger <andreas.dilger@intel.com>
lustre/include/lustre/lustre_user.h
lustre/include/obd.h
lustre/utils/liblustreapi.c