[Sheepdog] [PATCH, RFC] collie: add -r/--raw option for machine-readable output

Chris Webb chris at arachsys.com
Sun Jun 19 23:31:16 CEST 2011


MORITA Kazutaka <morita.kazutaka at lab.ntt.co.jp> writes:

> I don't know the way to include tabs or newlines into a program
> argument string.  I think it is enough to handle only ' ' and '\'.

In the end, I backslash quoted all whitespace in the patch you merged,
because it does appear to be possible to get tabs and newlines into VDI
names:

  # NAME=$(echo foo; echo bar)
  # qemu-img create -f sheepdog "$NAME" 1
  Formatting 'foo
  bar', fmt=sheepdog size=1 
  # collie vdi list
    name        id    size    used  shared    creation time   vdi id
  ------------------------------------------------------------------
  [...]
    foo
  bar      1  0.0 MB  0.0 MB  0.0 MB 2011-06-19 21:24   226618
  [...]

Cheers,

Chris.



More information about the sheepdog mailing list