aboutsummaryrefslogtreecommitdiff
path: root/util-linux/mount.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/mount.c')
-rw-r--r--util-linux/mount.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/util-linux/mount.c b/util-linux/mount.c
index c428f5827..c76f6ef61 100644
--- a/util-linux/mount.c
+++ b/util-linux/mount.c
@@ -223,6 +223,7 @@
223#define BB_MS_INVERTED_VALUE (1u << 31) 223#define BB_MS_INVERTED_VALUE (1u << 31)
224 224
225#include "libbb.h" 225#include "libbb.h"
226#include "common_bufsiz.h"
226#if ENABLE_FEATURE_MOUNT_LABEL 227#if ENABLE_FEATURE_MOUNT_LABEL
227# include "volume_id.h" 228# include "volume_id.h"
228#else 229#else
@@ -376,7 +377,7 @@ static const int32_t mount_options[] = {
376 /* "remount" */ MS_REMOUNT // action flag 377 /* "remount" */ MS_REMOUNT // action flag
377}; 378};
378 379
379static const char mount_option_str[] = 380static const char mount_option_str[] ALIGN1 =
380 IF_FEATURE_MOUNT_LOOP( 381 IF_FEATURE_MOUNT_LOOP(
381 "loop\0" 382 "loop\0"
382 ) 383 )
@@ -447,7 +448,7 @@ struct globals {
447 char getmntent_buf[1]; 448 char getmntent_buf[1];
448} FIX_ALIASING; 449} FIX_ALIASING;
449enum { GETMNTENT_BUFSIZE = COMMON_BUFSIZE - offsetof(struct globals, getmntent_buf) }; 450enum { GETMNTENT_BUFSIZE = COMMON_BUFSIZE - offsetof(struct globals, getmntent_buf) };
450#define G (*(struct globals*)&bb_common_bufsiz1) 451#define G (*(struct globals*)bb_common_bufsiz1)
451#define nfs_mount_version (G.nfs_mount_version) 452#define nfs_mount_version (G.nfs_mount_version)
452#if ENABLE_FEATURE_MOUNT_VERBOSE 453#if ENABLE_FEATURE_MOUNT_VERBOSE
453#define verbose (G.verbose ) 454#define verbose (G.verbose )
@@ -456,7 +457,7 @@ enum { GETMNTENT_BUFSIZE = COMMON_BUFSIZE - offsetof(struct globals, getmntent_b
456#endif 457#endif
457#define fslist (G.fslist ) 458#define fslist (G.fslist )
458#define getmntent_buf (G.getmntent_buf ) 459#define getmntent_buf (G.getmntent_buf )
459#define INIT_G() do { } while (0) 460#define INIT_G() do { setup_common_bufsiz(); } while (0)
460 461
461#if ENABLE_FEATURE_MTAB_SUPPORT 462#if ENABLE_FEATURE_MTAB_SUPPORT
462/* 463/*
@@ -1002,7 +1003,7 @@ enum {
1002# define EDQUOT ENOSPC 1003# define EDQUOT ENOSPC
1003#endif 1004#endif
1004/* Convert each NFSERR_BLAH into EBLAH */ 1005/* Convert each NFSERR_BLAH into EBLAH */
1005static const uint8_t nfs_err_stat[] = { 1006static const uint8_t nfs_err_stat[] ALIGN1 = {
1006 1, 2, 5, 6, 13, 17, 1007 1, 2, 5, 6, 13, 17,
1007 19, 20, 21, 22, 27, 28, 1008 19, 20, 21, 22, 27, 28,
1008 30, 63, 66, 69, 70, 71 1009 30, 63, 66, 69, 70, 71
@@ -1015,7 +1016,7 @@ typedef uint8_t nfs_err_type;
1015#else 1016#else
1016typedef uint16_t nfs_err_type; 1017typedef uint16_t nfs_err_type;
1017#endif 1018#endif
1018static const nfs_err_type nfs_err_errnum[] = { 1019static const nfs_err_type nfs_err_errnum[] ALIGN2 = {
1019 EPERM , ENOENT , EIO , ENXIO , EACCES, EEXIST, 1020 EPERM , ENOENT , EIO , ENXIO , EACCES, EEXIST,
1020 ENODEV, ENOTDIR , EISDIR , EINVAL, EFBIG , ENOSPC, 1021 ENODEV, ENOTDIR , EISDIR , EINVAL, EFBIG , ENOSPC,
1021 EROFS , ENAMETOOLONG, ENOTEMPTY, EDQUOT, ESTALE, EREMOTE 1022 EROFS , ENAMETOOLONG, ENOTEMPTY, EDQUOT, ESTALE, EREMOTE