]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - include/libxcmd.h
libxcmd: add cvt{int, long} to convert strings to int and long
[thirdparty/xfsprogs-dev.git] / include / libxcmd.h
CommitLineData
82c3a179
BD
1/*
2 * Copyright (c) 2000-2005 Silicon Graphics, Inc.
3 * All Rights Reserved.
4 *
5 * This program is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU General Public License as
7 * published by the Free Software Foundation.
8 *
9 * This program is distributed in the hope that it would be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write the Free Software Foundation,
16 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
17 */
18
19#ifndef __LIBXCMD_H__
20#define __LIBXCMD_H__
21
22#include "libxfs.h"
23#include <sys/time.h>
24
25/*
26 * Device topology information.
27 */
28typedef struct fs_topology {
29 int dsunit; /* stripe unit - data subvolume */
30 int dswidth; /* stripe width - data subvolume */
31 int rtswidth; /* stripe width - rt subvolume */
32 int lsectorsize; /* logical sector size &*/
33 int psectorsize; /* physical sector size */
34} fs_topology_t;
35
36extern void
37get_topology(
38 libxfs_init_t *xi,
39 struct fs_topology *ft,
40 int force_overwrite);
41
42extern void
43calc_default_ag_geometry(
44 int blocklog,
45 __uint64_t dblocks,
46 int multidisk,
47 __uint64_t *agsize,
48 __uint64_t *agcount);
49
50extern int
51check_overwrite(
52 const char *device);
53
54
55
56#endif /* __LIBXCMD_H__ */