Searched refs:transaction (Results 1 - 25 of 84) sorted by relevance

1234

/haiku/src/tests/system/kernel/file_corruption/fs/
H A DBlock.cpp41 Block::GetWritable(Volume* volume, uint64 blockIndex, Transaction& transaction) argument
45 status_t error = transaction.RegisterBlock(blockIndex);
51 transaction.ID()),
52 &transaction);
57 Block::GetZero(Volume* volume, uint64 blockIndex, Transaction& transaction) argument
61 status_t error = transaction.RegisterBlock(blockIndex);
67 transaction.ID()),
68 &transaction);
73 Block::MakeWritable(Transaction& transaction) argument
80 status_t error = transaction
111 _Init(Volume* volume, uint64 blockIndex, const void* data, Transaction* transaction) argument
[all...]
H A DBlockAllocator.h26 status_t Initialize(Transaction& transaction);
29 Transaction& transaction,
33 uint64 count, Transaction& transaction);
35 Transaction& transaction);
42 uint64 count, Transaction& transaction,
46 uint32 count, Transaction& transaction,
50 uint32 count, Transaction& transaction,
55 Transaction& transaction);
57 Transaction& transaction);
59 Transaction& transaction);
77 AllocatedBlock(BlockAllocator* allocator, Transaction& transaction) argument
[all...]
H A DBlock.h25 Transaction& transaction);
27 Transaction& transaction);
29 status_t MakeWritable(Transaction& transaction);
38 const void* data, Transaction* transaction);
H A DDirectory.h28 Transaction& transaction);
30 Transaction& transaction,
H A DVolume.cpp48 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, argument
350 CreateFile(mode_t mode, Transaction& transaction, File*& _file) argument
364 CreateSymLink(mode_t mode, Transaction& transaction, SymLink*& _symLink) argument
484 _CreateNode(Node* node, Transaction& transaction) argument
[all...]
H A DBlockAllocator.cpp82 BlockAllocator::Initialize(Transaction& transaction) argument
100 if (!block.GetZero(fVolume, fBitmapBlock + i, transaction))
110 transaction)) {
130 if (!block.GetZero(fVolume, fAllocationGroupBlock + i, transaction))
152 error = AllocateExactly(0, fBitmapBlock + fBitmapBlockCount, transaction);
165 Transaction& transaction, uint64& _allocatedBase, uint64& _allocatedCount)
179 status_t error = _Allocate(baseHint, fTotalBlocks, count, transaction,
182 return _UpdateSuperBlock(transaction);
187 error = _Allocate(0, baseHint, count, transaction, &_allocatedBase,
192 return _UpdateSuperBlock(transaction);
164 Allocate(uint64 baseHint, uint64 count, Transaction& transaction, uint64& _allocatedBase, uint64& _allocatedCount) argument
197 AllocateExactly(uint64 base, uint64 count, Transaction& transaction) argument
219 Free(uint64 base, uint64 count, Transaction& transaction) argument
259 _Allocate(uint64 base, uint64 searchEnd, uint64 count, Transaction& transaction, uint64* _allocatedBase, uint64& _allocatedCount) argument
355 _AllocateInGroup(uint64 base, uint64 searchEnd, uint32 count, Transaction& transaction, uint64* _allocatedBase, uint32& _allocatedCount) argument
485 _AllocateInBitmapBlock(uint64 base, uint32 count, Transaction& transaction, uint64* _allocatedBase, uint32& _allocatedCount) argument
588 _Free(uint64 base, uint64 count, Transaction& transaction) argument
618 _FreeInGroup(uint64 base, uint32 count, Transaction& transaction) argument
665 _FreeInBitmapBlock(uint64 base, uint32 count, Transaction& transaction) argument
723 _UpdateSuperBlock(Transaction& transaction) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/bfs/
H A DIndex.h29 status_t Create(Transaction& transaction, const char* name,
32 status_t Update(Transaction& transaction, const char* name,
37 status_t InsertName(Transaction& transaction,
39 status_t RemoveName(Transaction& transaction,
41 status_t UpdateName(Transaction& transaction,
45 status_t InsertSize(Transaction& transaction, Inode* inode);
46 status_t RemoveSize(Transaction& transaction, Inode* inode);
47 status_t UpdateSize(Transaction& transaction, Inode* inode);
49 status_t InsertLastModified(Transaction& transaction,
51 status_t RemoveLastModified(Transaction& transaction,
[all...]
H A DCachedBlock.h38 inline uint8* SetToWritable(Transaction& transaction,
41 inline uint8* SetToWritable(Transaction& transaction,
43 inline uint8* SetToWritable(Transaction& transaction,
45 inline status_t MakeWritable(Transaction& transaction);
161 CachedBlock::SetToWritable(Transaction& transaction, off_t block, off_t base, argument
169 block, transaction.ID());
172 block, base, length, transaction.ID());
180 CachedBlock::SetToWritable(Transaction& transaction, off_t block, bool empty) argument
182 return SetToWritable(transaction, block, block, 1, empty);
187 CachedBlock::SetToWritable(Transaction& transaction, block_ru argument
194 MakeWritable(Transaction& transaction) argument
[all...]
H A DIndex.cpp166 Index::Create(Transaction& transaction, const char* name, uint32 type) argument
202 status_t status = fVolume->CreateIndicesRoot(transaction);
208 return Inode::Create(transaction, fVolume->IndicesNode(), name,
217 You may not want to let the whole transaction fail because of that.
220 Index::Update(Transaction& transaction, const char* name, int32 type, argument
259 Node()->WriteLockInTransaction(transaction);
264 status = tree->Remove(transaction, (const uint8*)oldKey, oldLength,
276 status = tree->Insert(transaction, (const uint8*)newKey, newLength,
285 Index::InsertName(Transaction& transaction, const char* name, Inode* inode) argument
287 return UpdateName(transaction, NUL
292 RemoveName(Transaction& transaction, const char* name, Inode* inode) argument
299 UpdateName(Transaction& transaction, const char* oldName, const char* newName, Inode* inode) argument
312 InsertSize(Transaction& transaction, Inode* inode) argument
323 RemoveSize(Transaction& transaction, Inode* inode) argument
335 UpdateSize(Transaction& transaction, Inode* inode) argument
353 InsertLastModified(Transaction& transaction, Inode* inode) argument
364 RemoveLastModified(Transaction& transaction, Inode* inode) argument
376 UpdateLastModified(Transaction& transaction, Inode* inode, bigtime_t modified) argument
[all...]
H A DBlockAllocator.h30 status_t InitializeAndClearBitmap(Transaction& transaction);
34 status_t AllocateForInode(Transaction& transaction,
37 status_t Allocate(Transaction& transaction, Inode* inode,
40 status_t Free(Transaction& transaction, block_run run);
42 status_t AllocateBlocks(Transaction& transaction,
H A DBPlusTree.h209 bplustree_node* SetToWritable(Transaction& transaction,
211 bplustree_node* MakeWritable(Transaction& transaction);
212 bplustree_header* SetToWritableHeader(Transaction& transaction);
214 void UnsetUnchanged(Transaction& transaction);
216 status_t Free(Transaction& transaction, off_t offset);
217 status_t Allocate(Transaction& transaction,
225 bplustree_node* InternalSetTo(Transaction* transaction,
242 BPlusTree(Transaction& transaction,
251 status_t SetTo(Transaction& transaction, Inode* stream,
266 status_t Remove(Transaction& transaction,
436 Remove(Transaction& transaction, const char* key, off_t value) argument
445 Insert(Transaction& transaction, const char* key, off_t value) argument
454 Insert(Transaction& transaction, int32 key, off_t value) argument
463 Insert(Transaction& transaction, uint32 key, off_t value) argument
472 Insert(Transaction& transaction, int64 key, off_t value) argument
481 Insert(Transaction& transaction, uint64 key, off_t value) argument
490 Insert(Transaction& transaction, float key, off_t value) argument
499 Insert(Transaction& transaction, double key, off_t value) argument
[all...]
H A DInode.h35 Inode(Volume* volume, Transaction& transaction,
47 void WriteLockInTransaction(Transaction& transaction);
51 status_t WriteBack(Transaction& transaction);
117 status_t SetName(Transaction& transaction,
123 status_t WriteAttribute(Transaction& transaction,
127 status_t RemoveAttribute(Transaction& transaction,
134 status_t CreateAttribute(Transaction& transaction,
142 Transaction& transaction);
149 status_t WriteAt(Transaction& transaction, off_t pos,
153 status_t SetFileSize(Transaction& transaction,
351 NodeGetter(Volume* volume, Transaction& transaction, const Inode* inode, bool empty = false) argument
[all...]
/haiku/src/add-ons/kernel/file_systems/ext2/
H A DDataStream.h28 status_t Enlarge(Transaction& transaction, off_t& numBlocks);
29 status_t Shrink(Transaction& transaction, off_t& numBlocks);
34 status_t _GetBlock(Transaction& transaction, uint32& block);
35 status_t _PrepareBlock(Transaction& transaction, uint32* pos,
38 status_t _AddBlocks(Transaction& transaction, uint32* block,
40 status_t _AddBlocks(Transaction& transaction, uint32* block,
43 status_t _AddForDirectBlocks(Transaction& transaction,
45 status_t _AddForIndirectBlock(Transaction& transaction,
47 status_t _AddForDoubleIndirectBlock(Transaction& transaction,
49 status_t _AddForTripleIndirectBlock(Transaction& transaction,
[all...]
H A DInodeAllocator.h26 virtual status_t New(Transaction& transaction, Inode* parent,
28 virtual status_t Free(Transaction& transaction, ino_t id,
32 status_t _Allocate(Transaction& transaction,
35 status_t _AllocateInGroup(Transaction& transaction,
38 status_t _MarkInBitmap(Transaction& transaction,
41 status_t _UnmarkInBitmap(Transaction& transaction,
43 status_t _InitGroup(Transaction& transaction,
H A DDataStream.cpp180 DataStream::Enlarge(Transaction& transaction, off_t& numBlocks) argument
192 status = _AddForDirectBlocks(transaction, targetBlocks);
210 status = _AddForIndirectBlock(transaction, targetBlocks);
228 status = _AddForDoubleIndirectBlock(transaction, targetBlocks);
248 return _AddForTripleIndirectBlock(transaction, targetBlocks);
253 DataStream::Shrink(Transaction& transaction, off_t& numBlocks) argument
268 status = _RemoveFromDirectBlocks(transaction, numBlocks);
279 return _PerformFree(transaction);
284 status = _RemoveFromIndirectBlock(transaction, numBlocks);
295 return _PerformFree(transaction);
372 _GetBlock(Transaction& transaction, uint32& blockNum) argument
403 _PrepareBlock(Transaction& transaction, uint32* pos, uint32& blockNum, bool& clear) argument
426 _AddBlocks(Transaction& transaction, uint32* block, off_t _count) argument
448 _AddBlocks(Transaction& transaction, uint32* block, off_t start, off_t end, int recursion) argument
528 _AddForDirectBlocks(Transaction& transaction, uint32 numBlocks) argument
540 _AddForIndirectBlock(Transaction& transaction, uint32 numBlocks) argument
556 _AddForDoubleIndirectBlock(Transaction& transaction, uint32 numBlocks) argument
573 _AddForTripleIndirectBlock(Transaction& transaction, uint32 numBlocks) argument
587 _PerformFree(Transaction& transaction) argument
606 _MarkBlockForRemoval(Transaction& transaction, uint32* block) argument
634 _FreeBlocks(Transaction& transaction, uint32* block, uint32 _count) argument
655 _FreeBlocks(Transaction& transaction, uint32* block, off_t start, off_t end, bool freeParent, int recursion) argument
729 _RemoveFromDirectBlocks(Transaction& transaction, uint32 numBlocks) argument
741 _RemoveFromIndirectBlock(Transaction& transaction, uint32 numBlocks) argument
759 _RemoveFromDoubleIndirectBlock(Transaction& transaction, uint32 numBlocks) argument
778 _RemoveFromTripleIndirectBlock(Transaction& transaction, uint32 numBlocks) argument
[all...]
H A DCachedBlock.h26 uint8* SetToWritable(Transaction& transaction,
39 uint8* _SetToWritableEtc(int32 transaction, off_t block,
107 CachedBlock::SetToWritable(Transaction& transaction, off_t block, bool empty) argument
109 return _SetToWritableEtc(transaction.ID(), block, empty);
120 CachedBlock::_SetToWritableEtc(int32 transaction, off_t block, bool empty) argument
127 block, transaction);
130 block, transaction);
H A DBlockAllocator.h30 status_t AllocateBlocks(Transaction& transaction,
33 status_t Allocate(Transaction& transaction, Inode* inode,
36 status_t Free(Transaction& transaction, fsblock_t start,
H A DInodeAllocator.cpp47 InodeAllocator::New(Transaction& transaction, Inode* parent, int32 mode, argument
54 return _Allocate(transaction, preferredBlockGroup, S_ISDIR(mode), id);
59 InodeAllocator::Free(Transaction& transaction, ino_t id, bool isDirectory) argument
87 status = fVolume->WriteBlockGroup(transaction, blockGroup);
91 return _UnmarkInBitmap(transaction,
97 InodeAllocator::_Allocate(Transaction& transaction, uint32 preferredBlockGroup, argument
107 if (_AllocateInGroup(transaction, blockGroup,
112 if (i == 0 && _AllocateInGroup(transaction, blockGroup,
127 InodeAllocator::_AllocateInGroup(Transaction& transaction, uint32 blockGroup, argument
138 _InitGroup(transaction, grou
174 _MarkInBitmap(Transaction& transaction, fsblock_t bitmapBlock, uint32 blockGroup, uint32 numInodes, uint32& pos) argument
207 _UnmarkInBitmap(Transaction& transaction, fsblock_t bitmapBlock, uint32 numInodes, ino_t id) argument
230 _InitGroup(Transaction& transaction, ext2_block_group* group, fsblock_t bitmapBlock, uint32 numInodes) argument
[all...]
H A DVolume.h75 status_t WriteBlockGroup(Transaction& transaction,
102 status_t ActivateLargeFiles(Transaction& transaction);
103 status_t ActivateDirNLink(Transaction& transaction);
105 status_t SaveOrphan(Transaction& transaction,
107 status_t RemoveOrphan(Transaction& transaction,
110 status_t AllocateInode(Transaction& transaction,
112 status_t FreeInode(Transaction& transaction, ino_t id,
115 status_t AllocateBlocks(Transaction& transaction,
119 status_t FreeBlocks(Transaction& transaction,
123 status_t WriteSuperBlock(Transaction& transaction);
[all...]
H A DDirectoryIterator.h35 status_t AddEntry(Transaction& transaction, const char* name,
38 status_t RemoveEntry(Transaction& transaction);
40 status_t ChangeEntry(Transaction& transaction, ino_t id,
52 status_t _AddEntry(Transaction& transaction, const char* name,
56 status_t _SplitIndexedBlock(Transaction& transaction,
/haiku/src/tools/fs_shell/
H A Dblock_cache.cpp80 cache_transaction* transaction; member in struct:FSShell::cached_block
176 /*! Checks whether or not this is an event that closes a transaction. */
251 set_notification(cache_transaction* transaction, argument
255 notification.transaction_id = transaction != NULL ? transaction->id : -1;
306 /*! Notifies all interested listeners of this transaction about the \a event.
312 notify_transaction_listeners(block_cache* cache, cache_transaction* transaction, argument
318 ListenerList::Iterator iterator = transaction->listeners.GetIterator();
334 // most transaction events, we can do it here.
340 transaction
343 remove_transaction_listeners(block_cache* cache, cache_transaction* transaction) argument
356 add_transaction_listener(block_cache* cache, cache_transaction* transaction, int32_t events, fssh_transaction_notification_hook hookFunction, void* data) argument
399 cache_transaction* transaction = (cache_transaction*)_transaction; local
409 cache_transaction* transaction = (cache_transaction*)_transaction; local
420 delete_transaction(block_cache* cache, cache_transaction* transaction) argument
806 cache_transaction* transaction = block->transaction; local
980 cache_transaction* transaction = new(nothrow) cache_transaction; local
1007 cache_transaction* transaction; local
1045 cache_transaction* transaction = lookup_transaction(cache, id); local
1107 cache_transaction* transaction = lookup_transaction(cache, id); local
1159 cache_transaction* transaction = lookup_transaction(cache, id); local
1252 cache_transaction* transaction = lookup_transaction(cache, id); local
1305 cache_transaction* transaction = lookup_transaction(cache, id); local
1387 cache_transaction* transaction = lookup_transaction(cache, id); local
1429 cache_transaction* transaction = lookup_transaction(cache, id); local
1443 cache_transaction* transaction = lookup_transaction(cache, id); local
1457 cache_transaction* transaction = lookup_transaction(cache, id); local
1504 cache_transaction* transaction; local
1627 fssh_block_cache_make_writable(void* _cache, fssh_off_t blockNumber, int32_t transaction) argument
1649 fssh_block_cache_get_writable_etc(void* _cache, fssh_off_t blockNumber, fssh_off_t base, fssh_off_t length, int32_t transaction) argument
1666 fssh_block_cache_get_writable(void* _cache, fssh_off_t blockNumber, int32_t transaction) argument
1675 fssh_block_cache_get_empty(void* _cache, fssh_off_t blockNumber, int32_t transaction) argument
1728 fssh_block_cache_set_dirty(void* _cache, fssh_off_t blockNumber, bool dirty, int32_t transaction) argument
[all...]
/haiku/src/tests/add-ons/kernel/file_systems/bfs/btree/
H A Dcache.h29 int32 transaction);
31 int32 transaction);
34 bool dirty, int32 transaction);
H A Dcache.cpp126 block_cache_make_writable(void* _cache, off_t blockNumber, int32 transaction) argument
128 TRACE(("block_cache_make_writable(block = %" B_PRIdOFF ", transaction = %"
129 B_PRId32 ")\n", blockNumber, transaction));
137 block_cache_get_writable(void* _cache, off_t blockNumber, int32 transaction) argument
140 ", transaction = %" B_PRId32 ")\n", blockNumber, transaction));
148 int32 transaction)
151 ", dirty = %s, transaction = %" B_PRId32 ")\n", blockNumber,
152 dirty ? "yes" : "no", transaction));
147 block_cache_set_dirty(void* _cache, off_t blockNumber, bool dirty, int32 transaction) argument
/haiku/src/servers/package/
H A DFSTransaction.h55 Operation(FSTransaction* transaction, int32 operation) argument
57 fTransaction(transaction),
69 /*! Arms the operation rollback, i.e. rolling back the transaction will
77 /*! Unregisters the operation rollback, i.e. rolling back the transaction
99 CreateOperation(FSTransaction* transaction, const Entry& entry, argument
102 Operation(transaction,
103 transaction->CreateEntry(entry, modifiedOperation))
111 RemoveOperation(FSTransaction* transaction, const Entry& entry, argument
114 Operation(transaction,
115 transaction
123 MoveOperation(FSTransaction* transaction, const Entry& fromEntry, const Entry& toEntry, int32 modifiedOperation = -1) argument
[all...]
/haiku/src/system/kernel/cache/
H A Dblock_cache.cpp50 // a transaction is considered idle after 2 seconds of inactivity
69 // When in a transaction, this contains the original data from before
70 // the transaction.
73 // block in the parent transaction. It may point to current_data if the
74 // contents have been changed only in the parent transaction, or, if the
75 // block has been changed in the current sub transaction already, to a
76 // new block containing the contents changed in the parent transaction.
78 // transaction at all.
94 cache_transaction* transaction; member in struct:__anon63::cached_block
95 // This is the current active transaction, i
632 Action(const char* label, block_cache* cache, cache_transaction* transaction) argument
665 Detach(block_cache* cache, cache_transaction* transaction, cache_transaction* newTransaction) argument
697 Abort(block_cache* cache, cache_transaction* transaction) argument
871 set_notification(cache_transaction* transaction, cache_notification &notification, int32 events, transaction_notification_hook hook, void* data) argument
936 notify_transaction_listeners(block_cache* cache, cache_transaction* transaction, int32 event) argument
965 remove_transaction_listeners(block_cache* cache, cache_transaction* transaction) argument
978 add_transaction_listener(block_cache* cache, cache_transaction* transaction, int32 events, transaction_notification_hook hookFunction, void* data) argument
1019 delete_transaction(block_cache* cache, cache_transaction* transaction) argument
1058 write_blocks_in_previous_transaction(block_cache* cache, cache_transaction* transaction) argument
1115 Add(cached_block* block, cache_transaction* transaction) argument
1161 Add(cache_transaction* transaction, bool& hasLeftOvers) argument
1195 Write(cache_transaction* transaction, bool canUnlock) argument
1297 _BlockDone(cached_block* block, cache_transaction* transaction) argument
2022 cache_transaction* transaction = block->transaction; local
2277 cache_transaction* transaction = iterator.Next(); local
2335 cache_transaction* transaction = NULL; local
2617 cache_transaction* transaction = iterator.Next(); local
2802 cache_transaction* transaction = new(std::nothrow) cache_transaction; local
2835 cache_transaction* transaction = iterator.Next(); local
2877 cache_transaction* transaction = lookup_transaction(cache, id); local
2943 cache_transaction* transaction = lookup_transaction(cache, id); local
2996 cache_transaction* transaction = lookup_transaction(cache, id); local
3099 cache_transaction* transaction = lookup_transaction(cache, id); local
3184 cache_transaction* transaction = lookup_transaction(cache, id); local
3245 cache_transaction* transaction = lookup_transaction(cache, id); local
3260 cache_transaction* transaction = lookup_transaction(cache, id); local
3292 cache_transaction* transaction = lookup_transaction(cache, id); local
3334 cache_transaction* transaction = lookup_transaction(cache, id); local
3352 cache_transaction* transaction = lookup_transaction(cache, id); local
3369 cache_transaction* transaction = lookup_transaction(cache, id); local
3424 cache_transaction* transaction = cache->transaction_hash->Clear(true); local
3575 block_cache_make_writable(void* _cache, off_t blockNumber, int32 transaction) argument
3598 block_cache_get_writable_etc(void* _cache, off_t blockNumber, off_t base, off_t length, int32 transaction) argument
3615 block_cache_get_writable(void* _cache, off_t blockNumber, int32 transaction) argument
3623 block_cache_get_empty(void* _cache, off_t blockNumber, int32 transaction) argument
3676 block_cache_set_dirty(void* _cache, off_t blockNumber, bool dirty, int32 transaction) argument
[all...]

Completed in 218 milliseconds

1234