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