Lines Matching refs:DOMID_GUEST

31 #define DOMID_GUEST 1  macro
62 xs_impl_reset_watches(s, DOMID_GUEST); in xs_impl_delete()
243 XenstoreImplState *s2 = xs_impl_create(DOMID_GUEST); in check_serdes()
248 ret = xs_impl_deserialize(s2, bytes, DOMID_GUEST, watch_cb, NULL); in check_serdes()
277 XenstoreImplState *s = xs_impl_create(DOMID_GUEST); in setup()
282 abspath = g_strdup_printf("/local/domain/%u", DOMID_GUEST); in setup()
289 perms = g_list_append(perms, g_strdup_printf("r%u", DOMID_GUEST)); in setup()
297 abspath = g_strdup_printf("/local/domain/%u/some", DOMID_GUEST); in setup()
303 perms = g_list_append(NULL, g_strdup_printf("n%u", DOMID_GUEST)); in setup()
327 err = xs_impl_watch(s, DOMID_GUEST, "some", "guestwatch", in test_xs_node_simple()
342 err = xs_impl_read(s, DOMID_GUEST, XBT_NULL, "foo", data); in test_xs_node_simple()
346 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/relative/path", in test_xs_node_simple()
360 err = xs_impl_read(s, DOMID_GUEST, XBT_NULL, "some/relative/path", data); in test_xs_node_simple()
367 err = xs_impl_read(s, DOMID_GUEST, XBT_NULL, in test_xs_node_simple()
378 err = write_str(s, DOMID_GUEST, XBT_NULL, "/local/domain/badplace", in test_xs_node_simple()
384 err = write_str(s, DOMID_GUEST, XBT_NULL, in test_xs_node_simple()
394 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/relative/path", in test_xs_node_simple()
403 err = xs_impl_directory(s, DOMID_GUEST, XBT_NULL, "some/relative", &gencnt, in test_xs_node_simple()
414 err = xs_impl_unwatch(s, DOMID_GUEST, "some", "guestwatch", in test_xs_node_simple()
418 err = xs_impl_unwatch(s, DOMID_GUEST, "some", "guestwatch", in test_xs_node_simple()
422 err = xs_impl_watch(s, DOMID_GUEST, "some/relative/path2", "watchp2", in test_xs_node_simple()
429 err = xs_impl_watch(s, DOMID_GUEST, "/local/domain/1/some/relative", in test_xs_node_simple()
439 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/relative", "moredata"); in test_xs_node_simple()
444 err = write_str(s, DOMID_GUEST, XBT_NULL, "/local/domain/badplace", in test_xs_node_simple()
453 err = xs_impl_read(s, DOMID_GUEST, XBT_NULL, "some/relative", data); in test_xs_node_simple()
459 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/relative", "otherdata"); in test_xs_node_simple()
464 err = xs_impl_read(s, DOMID_GUEST, XBT_NULL, "some/relative", data); in test_xs_node_simple()
470 err = xs_impl_rm(s, DOMID_GUEST, XBT_NULL, "some/relative"); in test_xs_node_simple()
482 err = xs_impl_read(s, DOMID_GUEST, XBT_NULL, "some/relative", data); in test_xs_node_simple()
486 xs_impl_reset_watches(s, DOMID_GUEST); in test_xs_node_simple()
505 err = xs_impl_watch(s, DOMID_GUEST, "some", "watch", in do_test_xs_node_tx()
513 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/relative/path", in do_test_xs_node_tx()
522 err = xs_impl_transaction_start(s, DOMID_GUEST, &tx_id); in do_test_xs_node_tx()
527 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/relative/path", in do_test_xs_node_tx()
539 err = write_str(s, DOMID_GUEST, tx_id, "some/relative/path", in do_test_xs_node_tx()
545 err = xs_impl_read(s, DOMID_GUEST, XBT_NULL, "some/relative/path", data); in do_test_xs_node_tx()
556 err = xs_impl_read(s, DOMID_GUEST, tx_id, "some/relative/path", data); in do_test_xs_node_tx()
565 err = xs_impl_transaction_end(s, DOMID_GUEST, tx_id, commit); in do_test_xs_node_tx()
582 err = xs_impl_unwatch(s, DOMID_GUEST, "some", "watch", in do_test_xs_node_tx()
586 err = xs_impl_read(s, DOMID_GUEST, XBT_NULL, "some/relative/path", data); in do_test_xs_node_tx()
629 err = xs_impl_watch(s, DOMID_GUEST, "some", "watch", in test_xs_node_tx_rm()
637 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/deep/dark/relative/path", in test_xs_node_tx_rm()
646 err = xs_impl_transaction_start(s, DOMID_GUEST, &tx_id); in test_xs_node_tx_rm()
650 err = xs_impl_rm(s, DOMID_GUEST, tx_id, "some/deep/dark"); in test_xs_node_tx_rm()
655 err = xs_impl_read(s, DOMID_GUEST, XBT_NULL, "some/deep/dark/relative/path", in test_xs_node_tx_rm()
665 err = xs_impl_transaction_end(s, DOMID_GUEST, tx_id, true); in test_xs_node_tx_rm()
673 err = xs_impl_read(s, DOMID_GUEST, XBT_NULL, "some/deep/dark/relative/path", in test_xs_node_tx_rm()
678 err = xs_impl_unwatch(s, DOMID_GUEST, "some", "watch", in test_xs_node_tx_rm()
697 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/deep/dark/relative/path", in test_xs_node_tx_resurrect()
703 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/place/safe", "keepme"); in test_xs_node_tx_resurrect()
708 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/deep/dark", in test_xs_node_tx_resurrect()
714 err = xs_impl_watch(s, DOMID_GUEST, "some", "watch", in test_xs_node_tx_resurrect()
722 err = xs_impl_transaction_start(s, DOMID_GUEST, &tx_id); in test_xs_node_tx_resurrect()
726 err = xs_impl_rm(s, DOMID_GUEST, tx_id, "some/deep"); in test_xs_node_tx_resurrect()
732 err = write_str(s, DOMID_GUEST, tx_id, "some/deep/dark/different/path", in test_xs_node_tx_resurrect()
740 err = xs_impl_transaction_end(s, DOMID_GUEST, tx_id, true); in test_xs_node_tx_resurrect()
756 err = xs_impl_read(s, DOMID_GUEST, XBT_NULL, "some/deep/dark/relative/path", in test_xs_node_tx_resurrect()
763 err = xs_impl_unwatch(s, DOMID_GUEST, "some", "watch", in test_xs_node_tx_resurrect()
782 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/deep/dark/relative/path", in test_xs_node_tx_resurrect2()
788 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/place/safe", "keepme"); in test_xs_node_tx_resurrect2()
793 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/deep/dark", in test_xs_node_tx_resurrect2()
799 err = xs_impl_watch(s, DOMID_GUEST, "some", "watch", in test_xs_node_tx_resurrect2()
807 err = xs_impl_transaction_start(s, DOMID_GUEST, &tx_id); in test_xs_node_tx_resurrect2()
811 err = xs_impl_rm(s, DOMID_GUEST, tx_id, "some/deep"); in test_xs_node_tx_resurrect2()
817 err = write_str(s, DOMID_GUEST, tx_id, "some/deep/dark/relative/path", in test_xs_node_tx_resurrect2()
825 err = xs_impl_transaction_end(s, DOMID_GUEST, tx_id, true); in test_xs_node_tx_resurrect2()
839 err = xs_impl_read(s, DOMID_GUEST, XBT_NULL, "some/deep/dark/relative/path", in test_xs_node_tx_resurrect2()
849 err = xs_impl_unwatch(s, DOMID_GUEST, "some", "watch", in test_xs_node_tx_resurrect2()