Skip to contentSkip to conversation

fs-backend: fix ioctl(BLKGETSIZE) call on 64bit

PATCH New Samuel Thibault 1 participant 1 message Jul 15, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fs-backend: fix ioctl(BLKGETSIZE) call on 64bit

fs-backend: fix ioctl(BLKGETSIZE) call on 64bit

tools/fs-back/fs-ops.c +1 -1
diff -r 064c96848e2f tools/fs-back/fs-ops.c
@@ -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, &sectors)) {
 	    perror("getting device size\n");
 	    buf->stat_size = 0;