Adds tests for the new order commands.

This commit is contained in:
Andrea Mazzoleni 2013-06-25 23:12:31 +02:00
parent 277fc57216
commit c1f0d7c372
2 changed files with 3 additions and 3 deletions

2
unix.c
View file

@ -142,7 +142,7 @@ int filephy(const char* path, struct stat* st, uint64_t* physical)
memset(&fm, 0, sizeof(fm));
fm.fiemap.fm_start = 0;
fm.fiemap.fm_length = -1;
fm.fiemap.fm_length = ~0ULL;
fm.fiemap.fm_flags = FIEMAP_FLAG_SYNC; /* required to ensure that just created files report a valid address and not 0 */
fm.fiemap.fm_extent_count = 1; /* we are interested only at the first block */