Lines Matching defs:node

250 Volume::NewNode(Node* node)
252 return new_vnode(fFSVolume, node->BlockIndex(), node, &gCheckSumFSVnodeOps);
257 Volume::PublishNode(Node* node, uint32 flags)
259 return publish_vnode(fFSVolume, node->BlockIndex(), node,
260 &gCheckSumFSVnodeOps, node->Mode(), flags);
272 Volume::PutNode(Node* node)
274 return put_vnode(fFSVolume, node->BlockIndex());
279 Volume::RemoveNode(Node* node)
281 return remove_vnode(fFSVolume, node->BlockIndex());
286 Volume::UnremoveNode(Node* node)
288 return unremove_vnode(fFSVolume, node->BlockIndex());
298 // load the node's block
306 Node* node;
310 node = new(std::nothrow) Directory(this, blockIndex, *nodeData);
313 node = new(std::nothrow) File(this, blockIndex, *nodeData);
316 node = new(std::nothrow) SymLink(this, blockIndex, *nodeData);
319 node = new(std::nothrow) Node(this, blockIndex, *nodeData);
323 if (node == NULL)
326 // TODO: Sanity check the node!
328 _node = node;
379 Volume::DeleteNode(Node* node)
381 // let the node delete data associated with it
382 node->DeletingNode();
384 uint64 blockIndex = node->BlockIndex();
386 // delete the node itself
390 error = fBlockAllocator->Free(node->BlockIndex(), 1, transaction);
394 ERROR("Failed to commit transaction for deleting node at %"
398 ERROR("Failed to free block for node at %" B_PRIu64 "\n",
402 ERROR("Failed to start transaction for deleting node at %" B_PRIu64
408 delete node;
484 Volume::_CreateNode(Node* node, Transaction& transaction)
486 if (node == NULL)
489 ObjectDeleter<Node> nodeDeleter(node);
504 node->SetBlockIndex(allocatedBlock.Index());
506 // attach the node to the transaction
507 error = transaction.AddNode(node, TRANSACTION_DELETE_NODE);