Skip to content

Commit 4797922

Browse files
committed
Merge pull request xapi-project#2 from simonjbeaumont/ca-120439
CA-120439: Use Unix.LargeFile for 32-bit machines
2 parents 6e16526 + 4885c47 commit 4797922

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sparse_dd.ml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ let find_backend_device path =
112112
let open Xenstore in
113113
(* If we're looking at a xen frontend device, see if the backend
114114
is in the same domain. If so check if it looks like a .vhd *)
115-
let rdev = (Unix.stat path).Unix.st_rdev in
115+
let rdev = (Unix.LargeFile.stat path).Unix.LargeFile.st_rdev in
116116
let major = rdev / 256 and minor = rdev mod 256 in
117117
let link = Unix.readlink (Printf.sprintf "/sys/dev/block/%d:%d/device" major minor) in
118118
match List.rev (Re_str.split (Re_str.regexp_string "/") link) with

0 commit comments

Comments
 (0)