diff options
author | Dave Wysochanski <dwysocha@redhat.com> | 2010-09-30 13:16:55 +0000 |
---|---|---|
committer | Dave Wysochanski <dwysocha@redhat.com> | 2010-09-30 13:16:55 +0000 |
commit | e32e2eb01130623281d79d64c08bcadb6736f043 (patch) | |
tree | 1331c741330420d7a988140632207ae8534ddb85 /lib/metadata/lv.h | |
parent | b88b638d6ec668b8fdf76238ab17221ca8643599 (diff) | |
download | lvm2-e32e2eb01130623281d79d64c08bcadb6736f043.tar.gz lvm2-e32e2eb01130623281d79d64c08bcadb6736f043.tar.xz lvm2-e32e2eb01130623281d79d64c08bcadb6736f043.zip |
Add lib/metadata/vg.[ch] and lib/metadata/lv.[ch].
These got missed when git cvsexportcommit was used.
Diffstat (limited to 'lib/metadata/lv.h')
-rw-r--r-- | lib/metadata/lv.h | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/lib/metadata/lv.h b/lib/metadata/lv.h new file mode 100644 index 00000000..d3b0d82b --- /dev/null +++ b/lib/metadata/lv.h @@ -0,0 +1,52 @@ +/* + * Copyright (C) 2010 Red Hat, Inc. All rights reserved. + * + * This file is part of LVM2. + * + * This copyrighted material is made available to anyone wishing to use, + * modify, copy, or redistribute it subject to the terms and conditions + * of the GNU Lesser General Public License v.2.1. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + */ +#ifndef _LV_H +#define _LV_H + +union lvid; +struct volume_group; +struct dm_list; +struct lv_segment; +struct replicator_device; + +struct logical_volume { + union lvid lvid; + char *name; + + struct volume_group *vg; + + uint64_t status; + alloc_policy_t alloc; + uint32_t read_ahead; + int32_t major; + int32_t minor; + + uint64_t size; /* Sectors */ + uint32_t le_count; + + uint32_t origin_count; + struct dm_list snapshot_segs; + struct lv_segment *snapshot; + + struct replicator_device *rdevice;/* For replicator-devs, rimages, slogs - reference to rdevice */ + struct dm_list rsites; /* For replicators - all sites */ + + struct dm_list segments; + struct dm_list tags; + struct dm_list segs_using_this_lv; +}; + +uint64_t lv_size(const struct logical_volume *lv); + +#endif |