X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Futils%2Fmount_utils.h;h=604483d3bae5ffc09d10f65ddeb15f1b088417df;hp=744d10651258c69d63fdcac7c6a02af4dc3dca1e;hb=7e0208da21f9358d96feebce5124f8587778c318;hpb=d62efba975d27d98f2d50f14d49dda53d2355d0c diff --git a/lustre/utils/mount_utils.h b/lustre/utils/mount_utils.h index 744d106..604483d 100644 --- a/lustre/utils/mount_utils.h +++ b/lustre/utils/mount_utils.h @@ -23,7 +23,7 @@ * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved. * Use is subject to license terms. * - * Copyright (c) 2012, 2016, Intel Corporation. + * Copyright (c) 2012, 2017, Intel Corporation. */ /* * This file is part of Lustre, http://www.lustre.org/ @@ -112,15 +112,17 @@ struct lustre_disk_data { /* used to describe the options to format the lustre disk, not persistent */ struct mkfs_opts { struct lustre_disk_data mo_ldd; /* to be written in MOUNT_DATA_FILE */ - char mo_device[128]; /* disk device name */ - char **mo_pool_vdevs; /* list of pool vdevs */ - char mo_loopdev[128]; /* in case a loop dev is needed */ - char mo_mkfsopts[512]; /* options to the backing-store mkfs */ - char *mo_mountopts; /* mount options for backing fs */ - __u64 mo_device_kb; /* in KB */ - int mo_stripe_count; - int mo_flags; - int mo_mgs_failnodes; + char mo_device[128]; /* disk device name */ + char **mo_pool_vdevs; /* list of pool vdevs */ + char mo_loopdev[128]; /* in case a loop dev is needed */ + char mo_mkfsopts[512]; /* options for backing-store mkfs */ + char *mo_mountopts; /* mount options for backing fs */ + long long mo_device_kb; /* in KB */ + int mo_blocksize_kb; /* blocksize in KB */ + int mo_stripe_count; + int mo_flags; + int mo_mgs_failnodes; + int mo_inode_size; }; #endif @@ -149,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", @@ -162,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",