#define _GNU_SOURCE #include "dom0_defs.h" int main(int argc, char *argv[]) { privcmd_blkmsg_t blkmsg; physdisk_probebuf_t buf; int i; if ( argc != 2 ) { fprintf(stderr, "Usage: xi_phys_probe \n"); return 1; } memset(&buf, 0, sizeof(buf)); do { buf.domain = atol(argv[1]); buf.n_aces = PHYSDISK_MAX_ACES_PER_REQUEST; blkmsg.op = XEN_BLOCK_PHYSDEV_PROBE; blkmsg.buf = &buf; blkmsg.buf_size = sizeof(buf); if ( do_xen_blkmsg(&blkmsg) < 0 ) return 1; for ( i = 0; i < buf.n_aces; i++ ) { char read = (buf.entries[i].mode & 1 ? 'r' : ' '); char write = (buf.entries[i].mode & 2 ? 'w' : ' '); printf("%x %x %lx %lx %c%c\n", physdev_to_xldev(buf.entries[i].device), buf.entries[i].partition, buf.entries[i].start_sect, buf.entries[i].n_sectors, read, write); } buf.start_ind += buf.n_aces; } while ( buf.n_aces == PHYSDISK_MAX_ACES_PER_REQUEST ); return 0; } ption value='master' selected='selected'>master clone of mitm proxyJames
aboutsummaryrefslogtreecommitdiffstats
path: root/web/src/js/components/ContentView/ContentViews.jsx
blob: 32a07564205c63a0e9eb4fd149b6020d4fc60b9a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100