X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;ds=sidebyside;f=lustre%2Futils%2Fmount_utils.h;h=604483d3bae5ffc09d10f65ddeb15f1b088417df;hb=7e0208da21f9358d96feebce5124f8587778c318;hp=f268392e2d618cfa00079722fe4afaad4481db2f;hpb=5f674667bfd1ab9a0e47d9f03f3e7eab37eb8e17;p=fs%2Flustre-release.git diff --git a/lustre/utils/mount_utils.h b/lustre/utils/mount_utils.h index f268392..604483d 100644 --- a/lustre/utils/mount_utils.h +++ b/lustre/utils/mount_utils.h @@ -151,9 +151,9 @@ struct mount_opts { #ifdef HAVE_SERVER_SUPPORT int get_mountdata(char *, struct lustre_disk_data *); -static inline char *mt_str(enum ldd_mount_type mt) +static inline const char *mt_str(enum ldd_mount_type mt) { - static char *mount_type_string[] = { + static const char * const mount_type_string[] = { "ext3", "ldiskfs", "smfs", @@ -164,9 +164,9 @@ static inline char *mt_str(enum ldd_mount_type mt) return mount_type_string[mt]; } -static inline char *mt_type(enum ldd_mount_type mt) +static inline const char *mt_type(enum ldd_mount_type mt) { - static char *mount_type_string[] = { + static const char * const mount_type_string[] = { "osd-ldiskfs", "osd-ldiskfs", "osd-smfs",