From ac43be9d9c1925a5fddf21ba2061f414e53140a8 Mon Sep 17 00:00:00 2001 From: Vijaikumar M Date: Tue, 20 May 2014 12:25:47 +0530 Subject: glusterd/snapshot: Use external umount for un-mounting snapshot umount2 doesn't cleanup /etc/mtab entry after doing umount, so use external umount command for un-mount operation. Change-Id: I1a91a700433e2bf15dd21e6fcdd9da54441048d1 BUG: 1098084 Signed-off-by: Vijaikumar M Reviewed-on: http://review.gluster.org/7775 Tested-by: Gluster Build System Reviewed-by: Rajesh Joseph Reviewed-by: Avra Sengupta Reviewed-by: Krishnan Parthasarathi Tested-by: Krishnan Parthasarathi --- xlators/mgmt/glusterd/src/glusterd-utils.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'xlators/mgmt/glusterd/src/glusterd-utils.h') diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.h b/xlators/mgmt/glusterd/src/glusterd-utils.h index eed2682b5db..91a4c3c2418 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.h +++ b/xlators/mgmt/glusterd/src/glusterd-utils.h @@ -747,6 +747,9 @@ gd_restore_snap_volume (dict_t *dict, dict_t *rsp_dict, int32_t glusterd_mount_lvm_snapshot (char *device_path, char *brick_mount_path); +int32_t +glusterd_umount (const char *path); + int32_t glusterd_add_snapshots_to_export_dict (dict_t *peer_data); -- cgit