[LTP] [PATCH 2/3] Added fcntl() and fallocate() lapi flags

Cyril Hrubis chrubis@suse.cz
Tue Feb 28 16:43:10 CET 2017


Hi!
> +#ifndef SEEK_HOLE
> +#define SEEK_HOLE 4
> +#endif
> +
> +#ifndef FALLOC_FL_KEEP_SIZE
> +#define FALLOC_FL_KEEP_SIZE 0x01
> +#endif
> +
> +#ifndef FALLOC_FL_PUNCH_HOLE
> +#define FALLOC_FL_PUNCH_HOLE 0x02
> +#endif
> +
> +#ifndef FALLOC_FL_COLLAPSE_RANGE
> +#define FALLOC_FL_COLLAPSE_RANGE 0x08
> +#endif
> +
> +#ifndef FALLOC_FL_ZERO_RANGE
> +#define FALLOC_FL_ZERO_RANGE 0x10
> +#endif
> +
> +#ifndef FALLOC_FL_INSERT_RANGE
> +#define FALLOC_FL_INSERT_RANGE 0x20
> +#endif

These defines should be indented with a space after the hash, but that
is very minor.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list