* [PATCH] fs-backend: fix ioctl(BLKGETSIZE) call on 64bit
@ 2008-07-15 16:15 Samuel Thibault
0 siblings, 0 replies; only message in thread
From: Samuel Thibault @ 2008-07-15 16:15 UTC (permalink / raw)
To: xen-devel
fs-backend: fix ioctl(BLKGETSIZE) call on 64bit
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
diff -r 064c96848e2f tools/fs-back/fs-ops.c
--- a/tools/fs-back/fs-ops.c Mon Jul 14 16:48:24 2008 +0100
+++ b/tools/fs-back/fs-ops.c Tue Jul 15 17:16:24 2008 +0100
@@ -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;
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-15 16:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-15 16:15 [PATCH] fs-backend: fix ioctl(BLKGETSIZE) call on 64bit Samuel Thibault
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.