mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
fs-backend: fix ioctl(BLKGETSIZE) call on 64bit
Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>
This commit is contained in:
1 parent
3123fe0fc4
commit
bdfd5fc7d1
1 file changed
+1
-1
@@ -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;
|
||||
|
||||