Files
libguestfs/lib
Richard W.M. Jones e3ebd50abd New API: guestfs_device_name returning the drive name
For each drive added, return the name.  For example calling this with
index 0 will return the string "/dev/sda".  I called it
guestfs_device_name (not drive_name) for consistency with the existing
guestfs_device_index function.

You don't really need to call this function.  You can follow the
advice here:
https://libguestfs.org/guestfs.3.html#block-device-naming
and assume that drives are added with predictable names like
"/dev/sda", "/dev/sdb", etc.

However it's useful to expose the internal guestfs_int_drive_name
function since especially handling names beyond index 26 is tricky
(https://rwmj.wordpress.com/2011/01/09/how-are-linux-drives-named-beyond-drive-26-devsdz/)

Fixes: https://github.com/libguestfs/libguestfs/issues/80
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
(cherry picked from commit ac00e603f8)
2022-07-06 17:17:56 +01:00
..
2020-03-06 19:32:32 +00:00
2021-01-28 14:04:29 +00:00
2020-08-24 16:24:38 +01:00
2022-03-09 09:28:02 +00:00
2020-03-06 19:32:32 +00:00
2021-12-09 13:46:28 +00:00
2021-04-08 11:12:17 +01:00
2021-04-08 11:12:17 +01:00
2022-03-09 09:28:02 +00:00
2022-03-09 09:27:19 +00:00
2021-04-08 11:12:17 +01:00
2022-03-09 09:28:02 +00:00
2021-04-08 11:12:17 +01:00
2020-03-06 19:32:32 +00:00
2020-03-06 19:32:32 +00:00