Added control socket, doesn't do anything yet.

This commit is contained in:
mbloch
2012-05-18 18:44:34 +01:00
parent f5d8e740f8
commit b533e4e31c
4 changed files with 42 additions and 7 deletions

View File

@@ -44,7 +44,7 @@ char* build_allocation_map(int fd, off64_t size, int resolution)
fiemap->fm_extent_count = fiemap->fm_mapped_extents;
fiemap->fm_mapped_extents = 0;
if (ioctl(fd, FS_IOC_FIEMAP, fiemap) < -1)
if (ioctl(fd, FS_IOC_FIEMAP, fiemap) < 0)
return NULL;
for (i=0;i<fiemap->fm_mapped_extents;i++) {