Lines Matching refs:transaction
112 // start a transaction
113 Transaction transaction(GetVolume());
114 status_t error = transaction.Start();
116 ERROR("Failed to start transaction for deleting contents of file at %"
121 error = Resize(0, false, transaction);
128 error = transaction.Commit();
130 ERROR("Failed to commit transaction for deleting contents of file at %"
137 File::Resize(uint64 newSize, bool fillWithZeroes, Transaction& transaction)
151 error = _ShrinkTree(blockCount, newBlockCount, transaction);
153 error = _GrowTree(blockCount, newBlockCount, transaction);
232 Transaction transaction(GetVolume());
233 status_t error = transaction.Start();
237 // attach the node to the transaction (write locks it, too)
238 error = transaction.AddNode(this,
244 error = Resize((uint64)pos + size, false, transaction);
250 // commit the transaction
251 error = transaction.Commit();
272 Transaction transaction(GetVolume());
273 if (transaction.Start() == B_OK && transaction.AddNode(this) == B_OK) {
276 transaction.Commit();
487 Transaction& transaction)
499 if (!infos[0].block.GetWritable(GetVolume(), BlockIndex(), transaction))
534 if (!info.block.GetWritable(GetVolume(), blockIndex, transaction))
551 transaction);
586 transaction);
597 Transaction& transaction)
611 if (!rootBlock.GetWritable(GetVolume(), BlockIndex(), transaction))
627 transaction);
634 transaction)) {
660 info.blockData[info.childCount - 1], transaction)) {
678 transaction);
694 transaction)) {