summaryrefslogtreecommitdiffstats
path: root/xlators/storage/bd_map/src/bd_map.h
diff options
context:
space:
mode:
authorM. Mohan Kumar <mohan@in.ibm.com>2013-11-13 22:44:42 +0530
committerAnand Avati <avati@redhat.com>2013-11-13 11:38:28 -0800
commit15a8ecd9b3eedf80881bd3dba81f16b7d2cb7c97 (patch)
tree856377a3f077ac4ea5cb9db2950210c8d9f30fb1 /xlators/storage/bd_map/src/bd_map.h
parentc1109ed6c6c7bff0df22c304158e9f392f83cf59 (diff)
bd_map: Remove bd_map xlator
Remove bd_map xlator and CLI related changes. Change-Id: If7086205df1907127c1a1fa4ba603f1c48421d09 BUG: 1028672 Signed-off-by: M. Mohan Kumar <mohan@in.ibm.com> Reviewed-on: http://review.gluster.org/5747 Tested-by: Gluster Build System <jenkins@build.gluster.com> Reviewed-by: Anand Avati <avati@redhat.com>
Diffstat (limited to 'xlators/storage/bd_map/src/bd_map.h')
-rw-r--r--xlators/storage/bd_map/src/bd_map.h82
1 files changed, 0 insertions, 82 deletions
diff --git a/xlators/storage/bd_map/src/bd_map.h b/xlators/storage/bd_map/src/bd_map.h
deleted file mode 100644
index fa10e97a9..000000000
--- a/xlators/storage/bd_map/src/bd_map.h
+++ /dev/null
@@ -1,82 +0,0 @@
-/*
- BD translator - Exports Block devices on server side as regular
- files to client
-
- Copyright IBM, Corp. 2012
-
- This file is part of GlusterFS.
-
- Author:
- M. Mohan Kumar <mohan@in.ibm.com>
-
- This file is licensed to you under your choice of the GNU Lesser
- General Public License, version 3 or any later version (LGPLv3 or
- later), or the GNU General Public License, version 2 (GPLv2), in all
- cases as published by the Free Software Foundation.
-*/
-
-#ifndef _BD_MAP_H
-#define _BD_MAP_H
-
-#ifndef _CONFIG_H
-#define _CONFIG_H
-#include "config.h"
-#endif
-
-#include "xlator.h"
-#include "mem-types.h"
-
-#define BD_XLATOR "block device mapper xlator"
-
-#define BACKEND_VG "vg"
-
-/* lvm2-2.02.79 added this in lvm2app.h, but it is available for linking in
- * older versions already */
-#if NEED_LVM_LV_FROM_NAME_DECL
-lv_t lvm_lv_from_name(vg_t vg, const char *name);
-#endif
-
-enum gf_bd_mem_types_ {
- gf_bd_fd = gf_common_mt_end + 1,
- gf_bd_private,
- gf_bd_entry,
- gf_bd_attr,
- gf_bd_mt_end
-};
-
-/*
- * Each BD/LV is represented by this data structure
- * Usually root entry will have only children and there is no sibling for that
- * All other entries may have children and/or sibling entries
- * If an entry is a Volume Group it will have child (. & .. and Logical
- * Volumes) and also other Volume groups will be a sibling for this
- */
-typedef struct bd_entry {
- struct list_head child; /* List to child */
- struct list_head sibling; /* List of siblings */
- struct bd_entry *parent;/* Parent of this node */
- struct bd_entry *link; /* Link to actual entry, if its . or .. */
- char name[NAME_MAX];
- struct iatt *attr;
- int refcnt;
- uint64_t size;
- pthread_rwlock_t lock;
-} bd_entry_t;
-
-/**
- * bd_fd - internal structure common to file and directory fd's
- */
-typedef struct bd_fd {
- bd_entry_t *entry;
- bd_entry_t *p_entry; /* Parent entry */
- int fd;
- int32_t flag;
-} bd_fd_t;
-
-typedef struct bd_priv {
- lvm_t handle;
- pthread_rwlock_t lock;
- char *vg;
-} bd_priv_t;
-
-#endif