Lines Matching refs:transaction

48 	mutex_init(&fTransactionLock, "checksumfs transaction");
194 Transaction transaction(this);
195 status_t error = transaction.Start();
199 error = fBlockAllocator->Initialize(transaction);
205 transaction, fRootDirectory);
209 transaction.KeepNode(fRootDirectory);
215 transaction)) {
224 // commit the transaction and flush the block cache
225 error = transaction.Commit();
334 Volume::CreateDirectory(mode_t mode, Transaction& transaction,
340 status_t error = _CreateNode(directory, transaction);
350 Volume::CreateFile(mode_t mode, Transaction& transaction, File*& _file)
354 status_t error = _CreateNode(file, transaction);
364 Volume::CreateSymLink(mode_t mode, Transaction& transaction, SymLink*& _symLink)
369 status_t error = _CreateNode(symLink, transaction);
387 Transaction transaction(this);
388 status_t error = transaction.Start();
390 error = fBlockAllocator->Free(node->BlockIndex(), 1, transaction);
392 error = transaction.Commit();
394 ERROR("Failed to commit transaction for deleting node at %"
402 ERROR("Failed to start transaction for deleting node at %" B_PRIu64
406 transaction.Abort();
426 // start a transaction
427 Transaction transaction(this);
428 status_t error = transaction.Start();
432 // we lock the volume now, to keep the locking order (transaction -> volume)
438 transaction)) {
447 // commit the transaction
448 error = transaction.Commit();
484 Volume::_CreateNode(Node* node, Transaction& transaction)
492 AllocatedBlock allocatedBlock(fBlockAllocator, transaction);
500 if (!block.GetZero(this, allocatedBlock.Index(), transaction))
506 // attach the node to the transaction
507 error = transaction.AddNode(node, TRANSACTION_DELETE_NODE);