mirror of
https://github.com/linux-apfs/apfstests.git
synced 2026-05-01 15:01:44 -07:00
Fix up minor build issues in some xfstests sources.
Fix build after recent xfsprogs header changes.
This commit is contained in:
+20
@@ -32,6 +32,26 @@
|
||||
|
||||
#include "global.h"
|
||||
|
||||
/*
|
||||
* Block I/O parameterization. A basic block (BB) is the lowest size of
|
||||
* filesystem allocation, and must equal 512. Length units given to bio
|
||||
* routines are in BB's.
|
||||
*/
|
||||
#define BBSHIFT 9
|
||||
#define BBSIZE (1<<BBSHIFT)
|
||||
#define BBMASK (BBSIZE-1)
|
||||
#define BTOBB(bytes) (((__u64)(bytes) + BBSIZE - 1) >> BBSHIFT)
|
||||
#define BTOBBT(bytes) ((__u64)(bytes) >> BBSHIFT)
|
||||
#define BBTOB(bbs) ((bbs) << BBSHIFT)
|
||||
#define OFFTOBB(bytes) (((__u64)(bytes) + BBSIZE - 1) >> BBSHIFT)
|
||||
#define OFFTOBBT(bytes) ((__u64)(bytes) >> BBSHIFT)
|
||||
#define BBTOOFF(bbs) ((__u64)(bbs) << BBSHIFT)
|
||||
|
||||
#define SEEKLIMIT32 0x7fffffff
|
||||
#define BBSEEKLIMIT32 BTOBBT(SEEKLIMIT32)
|
||||
#define SEEKLIMIT 0x7fffffffffffffffLL
|
||||
#define BBSEEKLIMIT OFFTOBBT(SEEKLIMIT)
|
||||
|
||||
#define FSBTOBB(f) (OFFTOBBT(FSBTOOFF(f)))
|
||||
#define BBTOFSB(b) (OFFTOFSB(BBTOOFF(b)))
|
||||
#define OFFTOFSB(o) ((o) / blocksize)
|
||||
|
||||
+1
-1
@@ -8,7 +8,7 @@
|
||||
|
||||
int main(int argc, char **argv)
|
||||
{
|
||||
int fd,n;
|
||||
int fd;
|
||||
char *ptr, *ptr2;
|
||||
struct stat st;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user