[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] [PATCH nbdkit v2 0/5] Add linuxdisk plugin.

Another interesting thing you can do with this plugin:


 - Fix inconsistent tab/space.

 - All 3 plugins now contain a block of text pointing to the
   other 2 plugins.


 - Unlink the temporary file and other cleanups along error paths.

 - fclose -> pclose, and check the return value for errors.

 - There's an extra commit containing a minor change to TODO.  I will
   probably push this.

I considered, but didn't yet fix, the latent bug in shell_quote.
Instead I added a comment.  Note there's a case where we probably
(arguably) should be using shell_quote on an argv[0] here:


'du -c -k -s' works on FreeBSD which doesn't have GNU coreutils.
(However I agree it's not very natural to use this plugin with FreeBSD
at all.)

The return from 'chdir (origdir)' is checked on the normal path, and
not checked only on the error path where we're only trying to make a
best effort clean-up.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]