]>
Commit | Line | Data |
---|---|---|
7478c2e3 DW |
1 | // SPDX-License-Identifier: GPL-2.0 |
2 | /* | |
3 | * Copyright (c) 2000-2005 Silicon Graphics, Inc. | |
4 | * All Rights Reserved. | |
5 | */ | |
6 | ||
7 | #ifndef __LIBFROG_TOPOLOGY_H__ | |
8 | #define __LIBFROG_TOPOLOGY_H__ | |
9 | ||
10 | /* | |
11 | * Device topology information. | |
12 | */ | |
13 | typedef struct fs_topology { | |
14 | int dsunit; /* stripe unit - data subvolume */ | |
15 | int dswidth; /* stripe width - data subvolume */ | |
16 | int rtswidth; /* stripe width - rt subvolume */ | |
17 | int lsectorsize; /* logical sector size &*/ | |
18 | int psectorsize; /* physical sector size */ | |
19 | } fs_topology_t; | |
20 | ||
21 | extern void | |
22 | get_topology( | |
23 | libxfs_init_t *xi, | |
24 | struct fs_topology *ft, | |
25 | int force_overwrite); | |
26 | ||
27 | extern void | |
28 | calc_default_ag_geometry( | |
29 | int blocklog, | |
30 | uint64_t dblocks, | |
31 | int multidisk, | |
32 | uint64_t *agsize, | |
33 | uint64_t *agcount); | |
34 | ||
35 | extern int | |
36 | check_overwrite( | |
37 | const char *device); | |
38 | ||
39 | #endif /* __LIBFROG_TOPOLOGY_H__ */ |