X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Futils%2Flhsmtool_posix.c;h=93e72bef6369e37bd4cf3f13f2935ccc257d49ef;hp=083d4c63f0d0b58256e32443532c7886d40b7b50;hb=5e0ad2afa62e9eb7cf4f48c394c6a84c74a02f2f;hpb=ef2a05a61b4201af612356f78197a57b427260b2 diff --git a/lustre/utils/lhsmtool_posix.c b/lustre/utils/lhsmtool_posix.c index 083d4c6..93e72be 100644 --- a/lustre/utils/lhsmtool_posix.c +++ b/lustre/utils/lhsmtool_posix.c @@ -469,7 +469,7 @@ static int ct_mkdir_p(const char *path) static int ct_save_stripe(int src_fd, const char *src, const char *dst) { - char lov_file[PATH_MAX]; + char lov_file[PATH_MAX + 8]; char lov_buf[XATTR_SIZE_MAX]; struct lov_user_md *lum; int rc; @@ -529,7 +529,7 @@ err_cleanup: static int ct_load_stripe(const char *src, void *lovea, size_t *lovea_size) { - char lov_file[PATH_MAX]; + char lov_file[PATH_MAX + 4]; int rc; int fd; @@ -1042,8 +1042,8 @@ static int ct_archive(const struct hsm_action_item *hai, const long hal_flags) } if (rename_needed == true) { - char tmp_src[PATH_MAX]; - char tmp_dst[PATH_MAX]; + char tmp_src[PATH_MAX + 8]; + char tmp_dst[PATH_MAX + 8]; /* atomically replace old archived file */ ct_path_archive(src, sizeof(src), opt.o_hsm_root,