X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Finclude%2Flustre%2Flustreapi.h;h=caaa780474cce13fc1f923f44b6ff6354a508732;hp=8cb362b05850cb0c1d715f33f3e7529889d3a500;hb=7b54fc7b1615f23a1ad9da84ba8e289de1f22d70;hpb=e631cd2395564833e9b6b27c64863d624ad0b7df diff --git a/lustre/include/lustre/lustreapi.h b/lustre/include/lustre/lustreapi.h index 8cb362b..caaa780 100644 --- a/lustre/include/lustre/lustreapi.h +++ b/lustre/include/lustre/lustreapi.h @@ -62,7 +62,11 @@ extern "C" { #endif #ifndef fallthrough -#define fallthrough do {} while (0) /* fallthrough */ +# if defined(__GNUC__) && __GNUC__ >= 7 +# define fallthrough __attribute__((fallthrough)) /* fallthrough */ +# else +# define fallthrough do {} while (0) /* fallthrough */ +# endif #endif typedef struct statx lstatx_t; @@ -995,7 +999,7 @@ int llapi_layout_pool_name_get(const struct llapi_layout *layout, * \retval -1 Invalid argument, errno set to EINVAL. */ int llapi_layout_pool_name_set(struct llapi_layout *layout, - char *pool_name); + const char *pool_name); /******************** File Creation ********************/ @@ -1106,6 +1110,7 @@ static const struct comp_flag_name { { LCME_FL_OFFLINE, "offline" }, { LCME_FL_NOSYNC, "nosync" }, { LCME_FL_EXTENSION, "extension" }, + { LCME_FL_PARITY, "parity" }, }; /** @@ -1216,8 +1221,7 @@ int llapi_mirror_punch(int fd, unsigned int id, off_t start, size_t length); int llapi_heat_get(int fd, struct lu_heat *heat); int llapi_heat_set(int fd, __u64 flags); -int llapi_layout_sanity(struct llapi_layout *layout, const char *fname, - bool incomplete, bool flr); +int llapi_layout_sanity(struct llapi_layout *layout, bool incomplete, bool flr); void llapi_layout_sanity_perror(int error); int llapi_layout_dom_size(struct llapi_layout *layout, uint64_t *size);