blkdeactivate.sh: Add PATH environment variable into script
[platform/upstream/device-mapper.git] / lib / misc / lvm-percent.h
1 /*
2  * Copyright (C) 2010 Red Hat, Inc. All rights reserved.
3  *
4  * This file is part of LVM2.
5  *
6  * This copyrighted material is made available to anyone wishing to use,
7  * modify, copy, or redistribute it subject to the terms and conditions
8  * of the GNU Lesser General Public License v.2.1.
9  *
10  * You should have received a copy of the GNU Lesser General Public License
11  * along with this program; if not, write to the Free Software Foundation,
12  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
13  */
14
15 #ifndef _LVM_PERCENT_H
16 #define _LVM_PERCENT_H
17 #include <stdint.h>
18
19 typedef enum {
20         SIGN_NONE = 0,
21         SIGN_PLUS = 1,
22         SIGN_MINUS = 2
23 } sign_t;
24
25 typedef enum {
26         PERCENT_NONE = 0,
27         PERCENT_VG,
28         PERCENT_FREE,
29         PERCENT_LV,
30         PERCENT_PVS,
31         PERCENT_ORIGIN
32 } percent_type_t;
33
34 #define LVM_PERCENT_MERGE_FAILED DM_PERCENT_FAILED
35
36 uint32_t percent_of_extents(uint32_t percents, uint32_t count, int roundup);
37
38 #endif