All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] Monitor file path length limitation
@ 2017-05-24 15:16 Simon
  2017-05-24 15:26 ` Eric Blake
  0 siblings, 1 reply; 4+ messages in thread
From: Simon @ 2017-05-24 15:16 UTC (permalink / raw)
  To: qemu-devel

Hello,

It seems that the monitor file path length is limited to about 100 
characters (107 to be precise).

Currently I'm using the '-monitor' parameter to create the monitor file 
in a directory which gather all the files related to a given VM (monitor 
file, PID file, disk image, etc.):

-monitor 
'unix:/home/user/vmtools/test/out/foobar.iso/foobar.iso_A/foobar.iso_B/foobar.iso_C/foobar.iso_D/foobar.iso_E/monitor.sock,server,nowait'

With this command Qemu does not produce any warning or error message but 
create the socket file "mon" instead of the expected "monitor.sock".

Things go even worse if I add a further nesting:

-monitor 
'unix:/home/user/vmtools/test/out/foobar.iso/foobar.iso_A/foobar.iso_B/foobar.iso_C/foobar.iso_D/foobar.iso_E/foobar.iso_F/monitor.sock,server,nowait'

Now, still without any warning, Qemu creates a file named "foo" in the 
parent directory ('foobar.iso_E/') instead of the expected directory 
('foobar.iso_E/').

Is there a clean way to work around this limitation? For instance, is 
there an alternative option I can use to generate this monitor file? Or 
should I just assume that absolute paths are not supported in the 
'-monitor' option and change the working directory before launching Qemu 
so I can pass "./monitor.sock" as monitor file path (I really prefer to 
use absolute path whenever possible though).

As a side-note, is there any technical reason for such a limitation?

Regards,
Simon.

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2017-05-24 15:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-24 15:16 [Qemu-devel] Monitor file path length limitation Simon
2017-05-24 15:26 ` Eric Blake
2017-05-24 15:39   ` Simon
2017-05-24 15:42   ` Daniel P. Berrange

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.