XD_GET_DOMAIN_PATH from dom2
This is returning /local/domain/0 to domain 2.
Is this something anyone has tried? I am wondering if I am hitting something that was never tested.
I kind of zoned out a few years ago when xenstore was being set up, but I am a little surprised it's not a bit more like a file system name space. Was there a reason for this?
thanks
ron
Quoted 4 lines · ron minnich
This is returning /local/domain/0 to domain 2.
Is this something anyone has tried? I am wondering if I am hitting something that was never tested.
Do you mean XS_GET_DOMAIN_PATH, the Xenstored message? This takes a domid, so if you're getting /local/domain/0 out, then you almost certainly are putting 0 in.
If you want to read /local/domain/N/something from domain N, then you can just do xs_read("something"), as each domain has an implicit prefix of /local/domain/N if they read using relative paths.
Ewan.
Quoted 7 lines · Ewan Mellor
Do you mean
XS_GET_DOMAIN_PATH, the Xenstored message? This takes a domid, so if you're getting /local/domain/0 out, then you almost certainly are putting 0 in.If you want to read /local/domain/N/something from domain N, then you can just do
xs_read("something"), as each domain has an implicit prefix of /local/domain/N if they read using relative paths.
thanks.
we're looking at writing a 9p server for the xenstore and I am just feeling my way around at this point. Thanks for the guidance.
ron