Matthew Booth
98bc29fda4
Recognise cd-rom devices in devsparts.c
...
Also:
* Un-duplicate device detection code by creating a common mapping function.
* Add some more comments.
2009-08-06 09:21:02 +01:00
Jim Meyering
2f1a50d816
Convert all TABs-as-indentation to spaces.
...
Do it by running this command:
[exempted files are matched via .x-sc_TAB_in_indentation]
git ls-files \
| pcregrep -vf .x-sc_TAB_in_indentation \
| xargs pcregrep -l '^ *\t' \
| xargs perl -MText::Tabs -ni -le \
'$m=/^( *\t[ \t]*)(.*)/; print $m ? expand($1) . $2 : $_'
2009-08-03 17:17:57 +02:00
Jim Meyering
5fd9891646
fix comments; move declarations
...
* daemon/devsparts.c (do_list_devices, do_list_partitions):
Remove stray words in comments.
Move declarations down to definition.
2009-07-30 08:59:15 +01:00
Richard Jones
25c4b0190c
Don't show empty CD devices (RHBZ#514505).
2009-07-29 15:03:59 +01:00
Jim Meyering
a7b73d4a1e
remove trailing blanks
2009-07-03 17:04:21 +02:00
Richard W.M. Jones
4513f2ec7b
Change to use virtio_blk (virtio block device) by default.
...
virtio_blk is the fast, virt-native block device driver
supported by qemu and KVM. Note that virtio_blk device
names are called /dev/vd*.
Existing scripts should continue working because device name
translation will silently change device names of the form
/dev/sd* to /dev/vd* as required.
See also:
http://libguestfs.org/guestfs.3.html#block_device_naming
2009-07-01 15:40:12 +01:00
Richard Jones
56bef498f4
In the daemon, change all const char * parameters to char *.
2009-06-10 14:16:47 +01:00
Richard W.M. Jones
5cd39c83e2
Add: pvresize, sfdisk-N, sfdisk-l, sfdisk-kernel-geomtry, sfdisk-disk-geometry commands. Pass --no-reread flag to sfdisk.
2009-05-15 14:52:34 +01:00
Richard Jones
db1aacb8e0
/dev/hd* is also a block device on RHEL 5.
2009-05-07 16:57:55 +01:00
Richard Jones
b4d2a01828
Added test suite.
2009-04-11 17:04:35 +01:00
Richard Jones
8e570870f5
Implement list-devices and list-partitions.
2009-04-06 12:55:26 +01:00