Lines Matching refs:err

60     int err;  in xs_impl_delete()  local
65 err = xs_impl_rm(s, DOMID_QEMU, XBT_NULL, "/local"); in xs_impl_delete()
66 g_assert(!err); in xs_impl_delete()
225 int err; in write_str() local
228 err = xs_impl_write(s, dom_id, tx_id, path, d); in write_str()
230 return err; in write_str()
280 int err; in setup() local
284 err = write_str(s, DOMID_QEMU, XBT_NULL, abspath, ""); in setup()
285 g_assert(!err); in setup()
291 err = xs_impl_set_perms(s, DOMID_QEMU, XBT_NULL, abspath, perms); in setup()
292 g_assert(!err); in setup()
299 err = write_str(s, DOMID_QEMU, XBT_NULL, abspath, ""); in setup()
300 g_assert(!err); in setup()
305 err = xs_impl_set_perms(s, DOMID_QEMU, XBT_NULL, abspath, perms); in setup()
306 g_assert(!err); in setup()
323 int err; in test_xs_node_simple() local
327 err = xs_impl_watch(s, DOMID_GUEST, "some", "guestwatch", in test_xs_node_simple()
329 g_assert(!err); in test_xs_node_simple()
334 err = xs_impl_watch(s, 0, "/local/domain/1/some", "qemuwatch", in test_xs_node_simple()
336 g_assert(!err); in test_xs_node_simple()
342 err = xs_impl_read(s, DOMID_GUEST, XBT_NULL, "foo", data); in test_xs_node_simple()
343 g_assert(err == ENOENT); in test_xs_node_simple()
346 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/relative/path", in test_xs_node_simple()
349 g_assert(!err); in test_xs_node_simple()
360 err = xs_impl_read(s, DOMID_GUEST, XBT_NULL, "some/relative/path", data); in test_xs_node_simple()
361 g_assert(!err); in test_xs_node_simple()
367 err = xs_impl_read(s, DOMID_GUEST, XBT_NULL, in test_xs_node_simple()
369 g_assert(!err); in test_xs_node_simple()
378 err = write_str(s, DOMID_GUEST, XBT_NULL, "/local/domain/badplace", in test_xs_node_simple()
380 g_assert(err == EACCES); in test_xs_node_simple()
384 err = write_str(s, DOMID_GUEST, XBT_NULL, in test_xs_node_simple()
387 g_assert(!err); in test_xs_node_simple()
394 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/relative/path", in test_xs_node_simple()
396 g_assert(!err); in test_xs_node_simple()
403 err = xs_impl_directory(s, DOMID_GUEST, XBT_NULL, "some/relative", &gencnt, in test_xs_node_simple()
405 g_assert(!err); in test_xs_node_simple()
414 err = xs_impl_unwatch(s, DOMID_GUEST, "some", "guestwatch", in test_xs_node_simple()
416 g_assert(!err); in test_xs_node_simple()
418 err = xs_impl_unwatch(s, DOMID_GUEST, "some", "guestwatch", in test_xs_node_simple()
420 g_assert(err == ENOENT); in test_xs_node_simple()
422 err = xs_impl_watch(s, DOMID_GUEST, "some/relative/path2", "watchp2", in test_xs_node_simple()
424 g_assert(!err); in test_xs_node_simple()
429 err = xs_impl_watch(s, DOMID_GUEST, "/local/domain/1/some/relative", in test_xs_node_simple()
431 g_assert(!err); in test_xs_node_simple()
439 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/relative", "moredata"); in test_xs_node_simple()
440 g_assert(!err); in test_xs_node_simple()
444 err = write_str(s, DOMID_GUEST, XBT_NULL, "/local/domain/badplace", in test_xs_node_simple()
446 g_assert(err == EACCES); in test_xs_node_simple()
453 err = xs_impl_read(s, DOMID_GUEST, XBT_NULL, "some/relative", data); in test_xs_node_simple()
454 g_assert(!err); in test_xs_node_simple()
459 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/relative", "otherdata"); in test_xs_node_simple()
460 g_assert(!err); in test_xs_node_simple()
464 err = xs_impl_read(s, DOMID_GUEST, XBT_NULL, "some/relative", data); in test_xs_node_simple()
465 g_assert(!err); in test_xs_node_simple()
470 err = xs_impl_rm(s, DOMID_GUEST, XBT_NULL, "some/relative"); in test_xs_node_simple()
471 g_assert(!err); in test_xs_node_simple()
482 err = xs_impl_read(s, DOMID_GUEST, XBT_NULL, "some/relative", data); in test_xs_node_simple()
483 g_assert(err == ENOENT); in test_xs_node_simple()
500 int err; in do_test_xs_node_tx() local
505 err = xs_impl_watch(s, DOMID_GUEST, "some", "watch", in do_test_xs_node_tx()
507 g_assert(!err); in do_test_xs_node_tx()
513 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/relative/path", in do_test_xs_node_tx()
516 g_assert(!err); in do_test_xs_node_tx()
522 err = xs_impl_transaction_start(s, DOMID_GUEST, &tx_id); in do_test_xs_node_tx()
523 g_assert(!err); in do_test_xs_node_tx()
527 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/relative/path", in do_test_xs_node_tx()
529 g_assert(!err); in do_test_xs_node_tx()
539 err = write_str(s, DOMID_GUEST, tx_id, "some/relative/path", in do_test_xs_node_tx()
541 g_assert(!err); 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()
546 g_assert(!err); 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()
557 g_assert(!err); in do_test_xs_node_tx()
565 err = xs_impl_transaction_end(s, DOMID_GUEST, tx_id, commit); in do_test_xs_node_tx()
567 g_assert(err == EAGAIN); in do_test_xs_node_tx()
569 g_assert(!err); in do_test_xs_node_tx()
582 err = xs_impl_unwatch(s, DOMID_GUEST, "some", "watch", in do_test_xs_node_tx()
584 g_assert(!err); 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()
587 g_assert(!err); in do_test_xs_node_tx()
624 int err; in test_xs_node_tx_rm() local
629 err = xs_impl_watch(s, DOMID_GUEST, "some", "watch", in test_xs_node_tx_rm()
631 g_assert(!err); 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()
639 g_assert(!err); in test_xs_node_tx_rm()
646 err = xs_impl_transaction_start(s, DOMID_GUEST, &tx_id); in test_xs_node_tx_rm()
647 g_assert(!err); 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()
651 g_assert(!err); 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()
657 g_assert(!err); in test_xs_node_tx_rm()
665 err = xs_impl_transaction_end(s, DOMID_GUEST, tx_id, true); in test_xs_node_tx_rm()
666 g_assert(!err); 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()
675 g_assert(err == ENOENT); in test_xs_node_tx_rm()
678 err = xs_impl_unwatch(s, DOMID_GUEST, "some", "watch", in test_xs_node_tx_rm()
680 g_assert(!err); in test_xs_node_tx_rm()
692 int err; in test_xs_node_tx_resurrect() local
697 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/deep/dark/relative/path", in test_xs_node_tx_resurrect()
699 g_assert(!err); 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()
704 g_assert(!err); in test_xs_node_tx_resurrect()
708 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/deep/dark", in test_xs_node_tx_resurrect()
710 g_assert(!err); in test_xs_node_tx_resurrect()
714 err = xs_impl_watch(s, DOMID_GUEST, "some", "watch", in test_xs_node_tx_resurrect()
716 g_assert(!err); in test_xs_node_tx_resurrect()
722 err = xs_impl_transaction_start(s, DOMID_GUEST, &tx_id); in test_xs_node_tx_resurrect()
723 g_assert(!err); in test_xs_node_tx_resurrect()
726 err = xs_impl_rm(s, DOMID_GUEST, tx_id, "some/deep"); in test_xs_node_tx_resurrect()
727 g_assert(!err); 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()
734 g_assert(!err); in test_xs_node_tx_resurrect()
740 err = xs_impl_transaction_end(s, DOMID_GUEST, tx_id, true); in test_xs_node_tx_resurrect()
741 g_assert(!err); 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()
758 g_assert(err == ENOENT); in test_xs_node_tx_resurrect()
763 err = xs_impl_unwatch(s, DOMID_GUEST, "some", "watch", in test_xs_node_tx_resurrect()
765 g_assert(!err); in test_xs_node_tx_resurrect()
777 int err; in test_xs_node_tx_resurrect2() local
782 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/deep/dark/relative/path", in test_xs_node_tx_resurrect2()
784 g_assert(!err); 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()
789 g_assert(!err); in test_xs_node_tx_resurrect2()
793 err = write_str(s, DOMID_GUEST, XBT_NULL, "some/deep/dark", in test_xs_node_tx_resurrect2()
795 g_assert(!err); in test_xs_node_tx_resurrect2()
799 err = xs_impl_watch(s, DOMID_GUEST, "some", "watch", in test_xs_node_tx_resurrect2()
801 g_assert(!err); in test_xs_node_tx_resurrect2()
807 err = xs_impl_transaction_start(s, DOMID_GUEST, &tx_id); in test_xs_node_tx_resurrect2()
808 g_assert(!err); in test_xs_node_tx_resurrect2()
811 err = xs_impl_rm(s, DOMID_GUEST, tx_id, "some/deep"); in test_xs_node_tx_resurrect2()
812 g_assert(!err); 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()
819 g_assert(!err); in test_xs_node_tx_resurrect2()
825 err = xs_impl_transaction_end(s, DOMID_GUEST, tx_id, true); in test_xs_node_tx_resurrect2()
826 g_assert(!err); 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()
841 g_assert(!err); in test_xs_node_tx_resurrect2()
849 err = xs_impl_unwatch(s, DOMID_GUEST, "some", "watch", in test_xs_node_tx_resurrect2()
851 g_assert(!err); in test_xs_node_tx_resurrect2()