]>
git.ipfire.org Git - thirdparty/xfsprogs-dev.git/blob - scrub/disk.h
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Copyright (C) 2018-2024 Oracle. All Rights Reserved.
4 * Author: Darrick J. Wong <djwong@kernel.org>
6 #ifndef XFS_SCRUB_DISK_H_
7 #define XFS_SCRUB_DISK_H_
9 #define DISK_FLAG_SCSI_VERIFY 0x1
13 unsigned int d_lbalog
;
14 unsigned int d_lbasize
; /* bytes */
16 unsigned int d_blksize
; /* bytes */
17 uint64_t d_size
; /* bytes */
18 uint64_t d_start
; /* bytes */
21 unsigned int disk_heads(struct disk
*disk
);
22 struct disk
*disk_open(const char *pathname
);
23 int disk_close(struct disk
*disk
);
24 ssize_t
disk_read_verify(struct disk
*disk
, void *buf
, uint64_t startblock
,
27 #endif /* XFS_SCRUB_DISK_H_ */