From 273f898364463cd10165fc82c8c5250a0962c452 Mon Sep 17 00:00:00 2001 From: Sachidananda Date: Sat, 16 Jul 2011 12:54:00 +0000 Subject: Canonicalize path names while creating volumes. When a volume is created resolve symbolic links, delete duplicate slashes in the path name. Signed-off-by: Sachidananda Urs Signed-off-by: Anand Avati BUG: 3183 (When creating volumes brick paths are not handled properly.) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=3183 --- cli/src/cli.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'cli/src/cli.h') diff --git a/cli/src/cli.h b/cli/src/cli.h index 0b94d6e3..ae4ebe7d 100644 --- a/cli/src/cli.h +++ b/cli/src/cli.h @@ -237,6 +237,9 @@ cli_rpc_notify (struct rpc_clnt *rpc, void *mydata, rpc_clnt_event_t event, void cli_path_strip_trailing_slashes (char *path); +int +cli_canonicalize_path (char *path); + int32_t cli_cmd_volume_profile_parse (const char **words, int wordcount, dict_t **options); -- cgit