Lines Matching refs:entry

159 		// init entry ref
160 BEntry entry;
161 status_t error = entry.SetTo(fPath);
166 error = entry.GetRef(&entryRef);
175 error = entry.GetStat(&st);
208 // uninitialize node and entry ref
390 bool IsOnlyNodeEntry(Entry* entry) const
392 return entry == fEntries.Head() && fEntries.GetNext(entry) == NULL;
395 void AddNodeEntry(Entry* entry)
397 fEntries.Add(entry);
400 void RemoveNodeEntry(Entry* entry)
402 fEntries.Remove(entry);
479 Entry* entry = new(std::nothrow) Entry(this, name, node);
480 if (entry == NULL || entry->Name().IsEmpty()) {
481 delete entry;
485 AddEntry(entry);
486 return entry;
489 void AddEntry(Entry* entry)
491 fEntries.Insert(entry);
494 void RemoveEntry(Entry* entry)
496 fEntries.Remove(entry);
580 Entry* entry = NULL, Node** _node = NULL);
588 void _DeleteEntry(Entry* entry, bool notify);
590 Entry* entry, bool notify);
592 void _NotifyFilesCreatedOrRemoved(Entry* entry,
594 void _NotifyEntryCreatedOrRemoved(Entry* entry,
610 BString _EntryPath(const Entry* entry) const;
1049 // If we then get the entry-created notification after 3., we don't see the
1051 // entry-removed notification. That is the client will never know that the
1054 // A possible solution could be to just create a zombie entry and pass on
1055 // the entry-created notification. We wouldn't be able to adhere to the
1057 // acceptable. Either the client hasn't seen the entry either -- then it
1058 // doesn't matter -- or it likely has ignored a not matching entry anyway.
1074 TRACE("%p->PathHandler::_EntryCreated(): entry: %" B_PRIdDEV ":%" B_PRIdINO
1078 BEntry entry;
1080 if (entry.SetTo(&entryRef) != B_OK || entry.GetStat(&st) != B_OK
1106 TRACE("%p->PathHandler::_EntryRemoved(): entry: %" B_PRIdDEV ":%" B_PRIdINO
1139 TRACE("%p->PathHandler::_EntryMoved(): entry: %" B_PRIdDEV ":%" B_PRIdINO
1145 BEntry entry;
1147 if (entry.SetTo(&toEntryRef) != B_OK || entry.GetStat(&st) != B_OK
1162 // respective entry regularly (i.e. don't encounter an out-of-sync
1163 // issue) or don't need to be called at all (entry outside the
1224 // generate separate entry-removed and entry-created
1291 // An entry was moved in a true ancestor directory or between true ancestor
1292 // directories. Unless the moved entry was or becomes our base ancestor, we
1416 // interest, if the entry matches the child ancestor.
1419 TRACE(" -> not an ancestor entry we're interested in "
1426 TRACE(" ancestor entry mismatch -> resyncing\n");
1427 // We're out of sync with reality -- the new entry refers to
1466 // remove the entry that is in the way and re-add the proper
1467 // entry
1484 // Check, if there's a colliding entry.
1490 // We're out of sync with reality -- the new entry refers to a different
1519 // We might be out of sync with reality -- the new entry refers to a
1644 Entry* entry, Node** _node)
1653 if (entry != NULL) {
1654 entry->SetNode(node);
1655 node->AddNodeEntry(entry);
1686 if (entry != NULL) {
1687 entry->SetNode(node);
1688 node->AddNodeEntry(entry);
1717 "entry: \"%s\"\n", this, nodeRef.device, nodeRef.node,
1731 Entry* entry = directory->RemoveAllEntries();
1732 while (entry != NULL) {
1733 Entry* nextEntry = entry->HashNext();
1734 _DeleteEntryAlreadyRemovedFromParent(entry, notify);
1735 entry = nextEntry;
1771 Entry* entry = directory->CreateEntry(name, NULL);
1772 if (entry == NULL)
1776 entry);
1778 directory->RemoveEntry(entry);
1779 delete entry;
1784 _NotifyEntryCreatedOrRemoved(entry, B_ENTRY_CREATED);
1787 *_entry = entry;
1793 PathHandler::_DeleteEntry(Entry* entry, bool notify)
1795 entry->Parent()->RemoveEntry(entry);
1796 _DeleteEntryAlreadyRemovedFromParent(entry, notify);
1801 PathHandler::_DeleteEntryAlreadyRemovedFromParent(Entry* entry, bool notify)
1804 _NotifyEntryCreatedOrRemoved(entry, B_ENTRY_REMOVED);
1806 Node* node = entry->Node();
1807 if (node->IsOnlyNodeEntry(entry))
1810 delete entry;
1815 PathHandler::_NotifyFilesCreatedOrRemoved(Entry* entry, int32 opcode) const
1817 Directory* directory = entry->Node()->ToDirectory();
1819 _NotifyEntryCreatedOrRemoved(entry, opcode);
1829 PathHandler::_NotifyEntryCreatedOrRemoved(Entry* entry, int32 opcode) const
1831 Node* node = entry->Node();
1833 NotOwningEntryRef(entry->Parent()->NodeRef(), entry->Name()),
1834 node->NodeRef(), _EntryPath(entry), node->IsDirectory(), opcode);
1846 TRACE("%p->PathHandler::_NotifyEntryCreatedOrRemoved(): entry %s: %"
1858 // the created/removed entry refers to always belongs to the same FS as
1880 TRACE("%p->PathHandler::_NotifyEntryMoved(): entry: %" B_PRIdDEV ":%"
1923 if (Entry* entry = node->FirstNodeEntry())
1924 return _EntryPath(entry);
1930 PathHandler::_EntryPath(const Entry* entry) const
1932 return make_path(_NodePath(entry->Parent()), entry->Name());