mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-25 18:59:33 +03:00
Appease GCC sprintf warnings found on Fedora 32/GCC 10.0.1
Increase the size of DDT_NAMELEN and MNT_LINE_MAX to appease GCC snprintf truncation warnings. Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Chris McDonough <chrism@plope.com> Closes #10712 Closes #10766
This commit is contained in:
parent
b0e75805ee
commit
c3b03d0701
@ -179,7 +179,7 @@ typedef struct ddt_ops {
|
|||||||
int (*ddt_op_count)(objset_t *os, uint64_t object, uint64_t *count);
|
int (*ddt_op_count)(objset_t *os, uint64_t object, uint64_t *count);
|
||||||
} ddt_ops_t;
|
} ddt_ops_t;
|
||||||
|
|
||||||
#define DDT_NAMELEN 102
|
#define DDT_NAMELEN 107
|
||||||
|
|
||||||
extern void ddt_object_name(ddt_t *ddt, enum ddt_type type,
|
extern void ddt_object_name(ddt_t *ddt, enum ddt_type type,
|
||||||
enum ddt_class clazz, char *name);
|
enum ddt_class clazz, char *name);
|
||||||
|
@ -43,7 +43,7 @@
|
|||||||
#define MS_NOMNTTAB 0x0
|
#define MS_NOMNTTAB 0x0
|
||||||
#define MS_RDONLY 0x1
|
#define MS_RDONLY 0x1
|
||||||
#define umount2(p, f) unmount(p, f)
|
#define umount2(p, f) unmount(p, f)
|
||||||
#define MNT_LINE_MAX 4096
|
#define MNT_LINE_MAX 4108
|
||||||
|
|
||||||
#define MNT_TOOLONG 1 /* entry exceeds MNT_LINE_MAX */
|
#define MNT_TOOLONG 1 /* entry exceeds MNT_LINE_MAX */
|
||||||
#define MNT_TOOMANY 2 /* too many fields in line */
|
#define MNT_TOOMANY 2 /* too many fields in line */
|
||||||
|
@ -40,7 +40,7 @@
|
|||||||
#endif /* MNTTAB */
|
#endif /* MNTTAB */
|
||||||
|
|
||||||
#define MNTTAB "/proc/self/mounts"
|
#define MNTTAB "/proc/self/mounts"
|
||||||
#define MNT_LINE_MAX 4096
|
#define MNT_LINE_MAX 4108
|
||||||
|
|
||||||
#define MNT_TOOLONG 1 /* entry exceeds MNT_LINE_MAX */
|
#define MNT_TOOLONG 1 /* entry exceeds MNT_LINE_MAX */
|
||||||
#define MNT_TOOMANY 2 /* too many fields in line */
|
#define MNT_TOOMANY 2 /* too many fields in line */
|
||||||
|
Loading…
Reference in New Issue
Block a user