]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blame - libfrog/topology.h
libfrog: fix workqueue_add error out
[thirdparty/xfsprogs-dev.git] / libfrog / topology.h
CommitLineData
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 */
13typedef 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
21extern void
22get_topology(
23 libxfs_init_t *xi,
24 struct fs_topology *ft,
25 int force_overwrite);
26
27extern void
28calc_default_ag_geometry(
29 int blocklog,
30 uint64_t dblocks,
31 int multidisk,
32 uint64_t *agsize,
33 uint64_t *agcount);
34
35extern int
36check_overwrite(
37 const char *device);
38
39#endif /* __LIBFROG_TOPOLOGY_H__ */