aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorrac61@labyrinth.cl.cam.ac.uk <rac61@labyrinth.cl.cam.ac.uk>2003-07-04 10:39:53 +0000
committerrac61@labyrinth.cl.cam.ac.uk <rac61@labyrinth.cl.cam.ac.uk>2003-07-04 10:39:53 +0000
commit965d3529097e9e06aa6065f4fe29ce118e5c31e2 (patch)
tree4e2304a93febd0c16eed83d16aa3e9796507ea02 /tools
parentf96c0903997933de7325382d61070dc1251f31eb (diff)
downloadxen-965d3529097e9e06aa6065f4fe29ce118e5c31e2.tar.gz
xen-965d3529097e9e06aa6065f4fe29ce118e5c31e2.tar.bz2
xen-965d3529097e9e06aa6065f4fe29ce118e5c31e2.zip
bitkeeper revision 1.268 (3f0559790jS_a4S9XzxupGBulKlRxQ)
Parse read/write mode in xi_phys_probe so that front-end doesn't need to know what the mode bits mean.
Diffstat (limited to 'tools')
-rw-r--r--tools/internal/xi_phys_probe.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/tools/internal/xi_phys_probe.c b/tools/internal/xi_phys_probe.c
index 1c64980cfa..aa260145c7 100644
--- a/tools/internal/xi_phys_probe.c
+++ b/tools/internal/xi_phys_probe.c
@@ -35,10 +35,13 @@ int main(int argc, char *argv[])
break;
for (x = 0; x < buf.n_aces; x++) {
- printf("%x %x %x %x\n", buf.entries[x].device,
+ char read = ( buf.entries[x].mode & 1 ? 'r' : ' ' );
+ char write = ( buf.entries[x].mode & 2 ? 'w' : ' ' );
+ printf("%x %x %x %c%c\n", buf.entries[x].device,
buf.entries[x].start_sect,
buf.entries[x].n_sectors,
- buf.entries[x].mode);
+ read,
+ write);
}
buf.start_ind += buf.n_aces;
} while (buf.n_aces == PHYSDISK_MAX_ACES_PER_REQUEST);