2 * Copyright (C) 2010 Red Hat, Inc. All rights reserved.
4 * This file is part of LVM2.
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.
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
15 #ifndef _LVM_PERCENT_H
16 #define _LVM_PERCENT_H
34 #define LVM_PERCENT_MERGE_FAILED DM_PERCENT_FAILED
36 uint32_t percent_of_extents(uint32_t percents, uint32_t count, int roundup);