0001
0002
0003
0004
0005
0006 #ifndef __XFS_FSMAP_H__
0007 #define __XFS_FSMAP_H__
0008
0009 struct fsmap;
0010
0011
0012 struct xfs_fsmap {
0013 dev_t fmr_device;
0014 uint32_t fmr_flags;
0015 uint64_t fmr_physical;
0016 uint64_t fmr_owner;
0017 xfs_fileoff_t fmr_offset;
0018 xfs_filblks_t fmr_length;
0019 };
0020
0021 struct xfs_fsmap_head {
0022 uint32_t fmh_iflags;
0023 uint32_t fmh_oflags;
0024 unsigned int fmh_count;
0025 unsigned int fmh_entries;
0026
0027 struct xfs_fsmap fmh_keys[2];
0028 };
0029
0030 void xfs_fsmap_to_internal(struct xfs_fsmap *dest, struct fsmap *src);
0031
0032 int xfs_getfsmap(struct xfs_mount *mp, struct xfs_fsmap_head *head,
0033 struct fsmap *out_recs);
0034
0035 #endif