]>
Commit | Line | Data |
---|---|---|
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 | */ | |
28 | typedef 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 | ||
36 | extern void | |
37 | get_topology( | |
38 | libxfs_init_t *xi, | |
39 | struct fs_topology *ft, | |
40 | int force_overwrite); | |
41 | ||
42 | extern void | |
43 | calc_default_ag_geometry( | |
44 | int blocklog, | |
14f8b681 | 45 | uint64_t dblocks, |
82c3a179 | 46 | int multidisk, |
14f8b681 DW |
47 | uint64_t *agsize, |
48 | uint64_t *agcount); | |
82c3a179 BD |
49 | |
50 | extern int | |
51 | check_overwrite( | |
52 | const char *device); | |
53 | ||
54 | ||
55 | ||
56 | #endif /* __LIBXCMD_H__ */ |