Lines Matching refs:nodeRef

350 	Node(const node_ref& nodeRef)
352 fNodeRef(nodeRef)
451 static Directory* Create(const node_ref& nodeRef)
453 Directory* directory = new(std::nothrow) Directory(nodeRef);
510 Directory(const node_ref& nodeRef)
512 Node(nodeRef)
564 const node_ref& nodeRef, bool isDirectory,
567 const node_ref& nodeRef, bool dryRun,
572 const node_ref& nodeRef,
576 Ancestor* _GetAncestor(const node_ref& nodeRef) const;
578 status_t _AddNode(const node_ref& nodeRef,
582 Node* _GetNode(const node_ref& nodeRef) const;
585 const char* name, const node_ref& nodeRef,
598 const node_ref& nodeRef, const char* path,
602 const node_ref& nodeRef,
1061 node_ref nodeRef;
1063 if (message->FindInt32("device", &nodeRef.device) != B_OK
1064 || message->FindInt64("node", &nodeRef.node) != B_OK
1069 entryRef.device = nodeRef.device;
1071 if (_CheckDuplicateEntryNotification(B_ENTRY_CREATED, entryRef, nodeRef))
1076 entryRef.directory, entryRef.name, nodeRef.device, nodeRef.node);
1081 || nodeRef != node_ref(st.st_dev, st.st_ino)) {
1085 _EntryCreated(entryRef, nodeRef, S_ISDIR(st.st_mode), false, true, NULL);
1093 node_ref nodeRef;
1095 if (message->FindInt32("device", &nodeRef.device) != B_OK
1096 || message->FindInt64("node", &nodeRef.node) != B_OK
1101 entryRef.device = nodeRef.device;
1103 if (_CheckDuplicateEntryNotification(B_ENTRY_REMOVED, entryRef, nodeRef))
1108 entryRef.directory, entryRef.name, nodeRef.device, nodeRef.node);
1110 _EntryRemoved(entryRef, nodeRef, false, true, NULL);
1119 node_ref nodeRef;
1121 if (message->FindInt32("node device", &nodeRef.device) != B_OK
1122 || message->FindInt64("node", &nodeRef.node) != B_OK
1134 if (_CheckDuplicateEntryNotification(B_ENTRY_MOVED, toEntryRef, nodeRef,
1143 toEntryRef.name, nodeRef.device, nodeRef.node);
1148 || nodeRef != node_ref(st.st_dev, st.st_ino)) {
1149 _EntryRemoved(fromEntryRef, nodeRef, false, true, NULL);
1166 || _EntryRemoved(fromEntryRef, nodeRef, true, false, NULL))
1168 || _EntryCreated(toEntryRef, nodeRef, isDirectory, true,
1177 _EntryRemoved(fromEntryRef, nodeRef, false, false,
1184 _EntryCreated(toEntryRef, nodeRef, isDirectory, false,
1214 _NotifyEntryMoved(fromEntryRef, toEntryRef, nodeRef,
1229 _EntryRemoved(fromEntryRef, nodeRef, false, true, NULL);
1233 _EntryCreated(toEntryRef, nodeRef, isDirectory, false, true,
1270 _NotifyEntryMoved(fromEntryRef, toEntryRef, nodeRef,
1282 _EntryCreated(toEntryRef, nodeRef, isDirectory, false, true, NULL);
1287 _EntryRemoved(fromEntryRef, nodeRef, false, true, NULL);
1309 if (fBaseAncestor->NodeRef() == nodeRef
1324 _NotifyEntryMoved(fromEntryRef, toEntryRef, nodeRef,
1332 _EntryRemoved(fromEntryRef, nodeRef, false, true, NULL);
1333 _EntryCreated(toEntryRef, nodeRef, isDirectory, false, true, NULL);
1340 node_ref nodeRef;
1342 if (message->FindInt32("device", &nodeRef.device) != B_OK
1343 || message->FindInt64("node", &nodeRef.node) != B_OK) {
1348 ", %s%s\n", this, nodeRef.device, nodeRef.node,
1356 if (Ancestor* ancestor = _GetAncestor(nodeRef)) {
1361 } else if (Node* node = _GetNode(nodeRef)) {
1376 const node_ref& nodeRef, bool isDirectory, bool dryRun, bool notify,
1382 Ancestor* ancestor = _GetAncestor(nodeRef);
1443 _NotifyEntryCreatedOrRemoved(entryRef, nodeRef,
1487 if (entryNode != NULL && entryNode->NodeRef() == nodeRef)
1498 _AddEntryIfNeeded(directory, entryRef.name, nodeRef, isDirectory, notify,
1506 const node_ref& nodeRef, bool dryRun, bool notify, Entry** _keepEntry)
1511 Ancestor* ancestor = _GetAncestor(nodeRef);
1558 _NotifyEntryCreatedOrRemoved(entryRef, nodeRef,
1605 const entry_ref& toEntryRef, const node_ref& nodeRef,
1609 && nodeRef == fDuplicateEntryNotificationNodeRef
1617 fDuplicateEntryNotificationNodeRef = nodeRef;
1636 PathHandler::_GetAncestor(const node_ref& nodeRef) const
1638 return fAncestors.Lookup(nodeRef);
1643 PathHandler::_AddNode(const node_ref& nodeRef, bool isDirectory, bool notify,
1647 ", isDirectory: %d, notify: %d)\n", this, nodeRef.device, nodeRef.node,
1651 Node* node = _GetNode(nodeRef);
1666 node = directoryNode = Directory::Create(nodeRef);
1668 node = new(std::nothrow) Node(nodeRef);
1677 if (nodeRef != fBaseAncestor->NodeRef()) {
1679 status_t error = sWatchingInterface->WatchNode(&nodeRef, flags, this);
1699 if (directory.SetTo(&nodeRef) != B_OK) {
1717 "entry: \"%s\"\n", this, nodeRef.device, nodeRef.node,
1748 PathHandler::_GetNode(const node_ref& nodeRef) const
1750 return fNodes.Lookup(nodeRef);
1756 const node_ref& nodeRef, bool isDirectory, bool notify,
1762 directory->NodeRef().node, name, nodeRef.device, nodeRef.node,
1775 status_t error = _AddNode(nodeRef, isDirectory, notify && _WatchFilesOnly(),
1840 const node_ref& nodeRef, const char* path, bool isDirectory, int32 opcode)
1849 entryRef.device, entryRef.directory, entryRef.name, nodeRef.device,
1850 nodeRef.node);
1856 message.AddInt32("node device", nodeRef.device);
1863 message.AddInt64("node", nodeRef.node);
1872 const entry_ref& toEntryRef, const node_ref& nodeRef, const char* fromPath,
1884 toEntryRef.directory, toEntryRef.name, nodeRef.device, nodeRef.node);
1891 message.AddInt32("node device", nodeRef.device);
1892 message.AddInt64("node", nodeRef.node);