blob: fa0a23b7738624c1cf898a738345b7173d5bf630 [file] [log] [blame]
// SPDX-License-Identifier: GPL-2.0
/*
* Copyright (c) 2000-2005 Silicon Graphics, Inc.
* All Rights Reserved.
*/
#ifndef __LIBXFS_TOPOLOGY_H__
#define __LIBXFS_TOPOLOGY_H__
/*
* Device topology information.
*/
struct device_topology {
int logical_sector_size; /* logical sector size */
int physical_sector_size; /* physical sector size */
int sunit; /* stripe unit */
int swidth; /* stripe width */
};
struct fs_topology {
struct device_topology data;
struct device_topology rt;
struct device_topology log;
};
void
get_topology(
struct libxfs_init *xi,
struct fs_topology *ft,
int force_overwrite);
extern void
calc_default_ag_geometry(
int blocklog,
uint64_t dblocks,
int multidisk,
uint64_t *agsize,
uint64_t *agcount);
extern int
check_overwrite(
const char *device);
#endif /* __LIBXFS_TOPOLOGY_H__ */