[Libguestfs] [PATCH v3.1 1/9] uuid: add support to change uuid of btrfs partition

Richard W.M. Jones rjones at redhat.com
Mon Jun 29 14:04:01 UTC 2015


On Fri, Jun 26, 2015 at 02:12:00PM +0200, Pino Toscano wrote:
> > +    warn "$0: skipping test for btrfs UUID change feature is not available\n";
> > +}
> 
> IIRC 'warn' prints the newline at the end already.

Actually in Perl, 'warn' and 'die' have magical behaviour here.
Without \n, they print the current line number.  With \n, the current
line number is suppressed:

$ perl -e 'die "foo"'
foo at -e line 1.
$ perl -e 'die "foo\n"'
foo

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v




More information about the Libguestfs mailing list