From 4f6c888c5cc32381273d563b184bcb032ee38cc9 Mon Sep 17 00:00:00 2001 From: Vijaikumar M Date: Thu, 13 Mar 2014 16:39:27 +0530 Subject: glusterd/snapshot: Validate snapshot name length while creation Change-Id: Iaee04f5209e278d83c086e32c4cafd6c571370cd Signed-off-by: Vijaikumar M Reviewed-on: http://review.gluster.org/7242 Reviewed-by: Rajesh Joseph Tested-by: Rajesh Joseph --- libglusterfs/src/glusterfs.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libglusterfs/src') diff --git a/libglusterfs/src/glusterfs.h b/libglusterfs/src/glusterfs.h index 98f512522..2f1e12ee7 100644 --- a/libglusterfs/src/glusterfs.h +++ b/libglusterfs/src/glusterfs.h @@ -70,6 +70,7 @@ #define FNM_EXTMATCH 0 #endif +#define GLUSTERD_MAX_SNAP_NAME 256 #define ZR_MOUNTPOINT_OPT "mountpoint" #define ZR_ATTR_TIMEOUT_OPT "attribute-timeout" #define ZR_ENTRY_TIMEOUT_OPT "entry-timeout" -- cgit