We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6e16526 + 4885c47 commit 4797922Copy full SHA for 4797922
src/sparse_dd.ml
@@ -112,7 +112,7 @@ let find_backend_device path =
112
let open Xenstore in
113
(* If we're looking at a xen frontend device, see if the backend
114
is in the same domain. If so check if it looks like a .vhd *)
115
- let rdev = (Unix.stat path).Unix.st_rdev in
+ let rdev = (Unix.LargeFile.stat path).Unix.LargeFile.st_rdev in
116
let major = rdev / 256 and minor = rdev mod 256 in
117
let link = Unix.readlink (Printf.sprintf "/sys/dev/block/%d:%d/device" major minor) in
118
match List.rev (Re_str.split (Re_str.regexp_string "/") link) with
0 commit comments