projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3123fe0
)
fs-backend: fix ioctl(BLKGETSIZE) call on 64bit
author
Keir Fraser
<keir.fraser@citrix.com>
Tue, 15 Jul 2008 17:00:13 +0000
(18:00 +0100)
committer
Keir Fraser
<keir.fraser@citrix.com>
Tue, 15 Jul 2008 17:00:13 +0000
(18:00 +0100)
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
tools/fs-back/fs-ops.c
patch
|
blob
|
history
diff --git
a/tools/fs-back/fs-ops.c
b/tools/fs-back/fs-ops.c
index de6bcd6b53c6aeb85fb51af723c4d6c18b95d2d7..4246759f5a931464772c2cc7cc68b416b6abbd2c 100644
(file)
--- a/
tools/fs-back/fs-ops.c
+++ b/
tools/fs-back/fs-ops.c
@@
-240,7
+240,7
@@
void dispatch_stat(struct mount *mount, struct fsif_request *req)
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;