mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 10:40:03 +01:00
bitkeeper revision 1.278 (3f093528SjHdAnyxMPb44WbytMKk6g)
Slightly less hacky interface
This commit is contained in:
1 parent
64ef079d7c
commit
8b7ca89859
1 file changed
+3
-3
@@ -11,8 +11,8 @@ int main(int argc, char *argv[])
|
||||
int fd;
|
||||
char *strbuf;
|
||||
|
||||
if (argc != 6) {
|
||||
fprintf(stderr, "Usage: xi_physdev_grant <r/rw> <domain> <device> <start sector> <n_sectors>\n");
|
||||
if (argc != 7) {
|
||||
fprintf(stderr, "Usage: xi_physdev_grant <r/rw> <domain> <device> <start sector> <n_sectors> <partition>\n");
|
||||
return 1;
|
||||
}
|
||||
|
||||
@@ -26,7 +26,7 @@ int main(int argc, char *argv[])
|
||||
else if (argv[1][1] == 'w')
|
||||
buf.mode |= 2;
|
||||
|
||||
buf.device = atol(argv[3]);
|
||||
buf.device = atol(argv[3]) + atol(argv[6]);
|
||||
buf.start_sect = atol(argv[4]);
|
||||
buf.n_sectors = atol(argv[5]);
|
||||
|
||||
|
||||