summaryrefslogtreecommitdiffstats
path: root/perl/lib/Sys/Guestfs/Lib.pm
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2011-07-20 14:25:32 +0100
committerRichard W.M. Jones <rjones@redhat.com>2011-07-27 15:04:05 +0100
commitfbfc1768a878044720cd5f03dc6e308dbdc70595 (patch)
tree5710a93249788eef648c58be08bd54740e415818 /perl/lib/Sys/Guestfs/Lib.pm
parent7141850a2ca8094f91c709cbdcb8dd0e094a6d18 (diff)
downloadlibguestfs-fbfc1768a878044720cd5f03dc6e308dbdc70595.tar.gz
libguestfs-fbfc1768a878044720cd5f03dc6e308dbdc70595.tar.xz
libguestfs-fbfc1768a878044720cd5f03dc6e308dbdc70595.zip
blkid: Detect when value not found and return empty string.
If the blkid command returns 2, that means the value was not found. Note that this changes the output of the vfs-type API when the filesystem has no type (eg when it is empty). Previously this would return an error. Now it returns empty string "". We did not document this either way. Making it return empty string is consistent with vfs-label and vfs-uuid. This change broke list-filesystems, since that code was assuming that vfs-type could only return a filesystem type or an error. (cherry picked from commit 168fd4ad5d1e5da93e11388095d41aaa8f804ceb)
Diffstat (limited to 'perl/lib/Sys/Guestfs/Lib.pm')
0 files changed, 0 insertions, 0 deletions