fs-backend: fix ioctl(BLKGETSIZE) call on 64bit
PATCH 1/1 fs-backend: fix ioctl(BLKGETSIZE) call on 64bit
fs-backend: fix ioctl(BLKGETSIZE) call on 64bit
Signed-off-by Samuel Thibault <[email protected]>
tools/fs-back/fs-ops.c +1 -1
@@ -240,7 +240,7 @@ buf->stat_gid = stat.st_gid;#ifdef BLKGETSIZE if (S_ISBLK (stat.st_mode)) { -int sectors; +unsigned long sectors;if (ioctl (fd,BLKGETSIZE , §ors)) {perror ("getting device size\n" ); buf->stat_size =0 ;