[ostree/wip/transaction: 4/9] repo: Make prepare_transaction introspectable
- From: Jasper St. Pierre <jstpierre src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree/wip/transaction: 4/9] repo: Make prepare_transaction introspectable
- Date: Thu, 5 Sep 2013 21:33:19 +0000 (UTC)
commit 01756f4700587cd7c2546f016fdb7d58a1fb6c7d
Author: Jasper St. Pierre <jstpierre mecheye net>
Date: Thu Sep 5 15:30:25 2013 -0400
repo: Make prepare_transaction introspectable
src/libostree/ostree-repo.c | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
---
diff --git a/src/libostree/ostree-repo.c b/src/libostree/ostree-repo.c
index f5f1671..95d42b1 100644
--- a/src/libostree/ostree-repo.c
+++ b/src/libostree/ostree-repo.c
@@ -1149,6 +1149,23 @@ devino_cache_lookup (OstreeRepo *self,
return g_hash_table_lookup (self->loose_object_devino_hash, &dev_ino);
}
+/**
+ * ostree_repo_prepare_transaction:
+ * @self: An #OstreeRepo
+ * @enable_commit_hardlink_scan:
+ * @out_transaction_resume: (allow-none) (out): Whether this transaction
+ * is resuming from a previous one.
+ * @cancellable: Cancellable
+ * @error: Error
+ *
+ * Starts or resumes a transaction. In order to write to a repo, you
+ * need to start a transaction. You can complete the transaction with
+ * ostree_repo_commit_transaction(), or abort the transaction with
+ * ostree_repo_abort_transaction().
+ *
+ * Currently, transactions are not atomic, and aborting a transaction
+ * will not erase any data you write during the transaction.
+ */
gboolean
ostree_repo_prepare_transaction (OstreeRepo *self,
gboolean enable_commit_hardlink_scan,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]