Moved over to new node monitor API.
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@11231 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright 2003-2004, Axel Dörfler, [email protected].
|
* Copyright 2003-2005, Axel Dörfler, [email protected].
|
||||||
* Distributed under the terms of the MIT License.
|
* Distributed under the terms of the MIT License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
@@ -433,7 +433,7 @@ Volume::RemoveNode(Inode *directory, const char *name)
|
|||||||
goto err;
|
goto err;
|
||||||
|
|
||||||
RemoveNode(inode);
|
RemoveNode(inode);
|
||||||
notify_listener(B_ENTRY_REMOVED, ID(), directory->ID(), 0, inode->ID(), name);
|
notify_entry_removed(ID(), directory->ID(), name, inode->ID());
|
||||||
|
|
||||||
// schedule this vnode to be removed when it's ref goes to zero
|
// schedule this vnode to be removed when it's ref goes to zero
|
||||||
remove_vnode(ID(), inode->ID());
|
remove_vnode(ID(), inode->ID());
|
||||||
@@ -1101,7 +1101,7 @@ pipefs_create(fs_volume _volume, fs_vnode _dir, const char *name, int openMode,
|
|||||||
*_newVnodeID = inode->ID();
|
*_newVnodeID = inode->ID();
|
||||||
|
|
||||||
if (wasCreated)
|
if (wasCreated)
|
||||||
notify_listener(B_ENTRY_CREATED, volume->ID(), directory->ID(), 0, inode->ID(), name);
|
notify_entry_created(volume->ID(), directory->ID(), name, inode->ID());
|
||||||
|
|
||||||
return B_OK;
|
return B_OK;
|
||||||
|
|
||||||
@@ -1512,29 +1512,29 @@ pipefs_write_stat(fs_volume _volume, fs_vnode _node, const struct stat *stat, ui
|
|||||||
TRACE(("pipefs_write_stat: vnode %p (0x%Lx), stat %p\n", inode, inode->ID(), stat));
|
TRACE(("pipefs_write_stat: vnode %p (0x%Lx), stat %p\n", inode, inode->ID(), stat));
|
||||||
|
|
||||||
// we cannot change the size of anything
|
// we cannot change the size of anything
|
||||||
if (statMask & FS_WRITE_STAT_SIZE)
|
if (statMask & B_STAT_SIZE)
|
||||||
return B_BAD_VALUE;
|
return B_BAD_VALUE;
|
||||||
|
|
||||||
volume->Lock();
|
volume->Lock();
|
||||||
// the inode's locks don't exist for the root node
|
// the inode's locks don't exist for the root node
|
||||||
// (but would be more appropriate to use here)
|
// (but would be more appropriate to use here)
|
||||||
|
|
||||||
if (statMask & FS_WRITE_STAT_MODE)
|
if (statMask & B_STAT_MODE)
|
||||||
inode->SetMode(stat->st_mode);
|
inode->SetMode(stat->st_mode);
|
||||||
|
|
||||||
if (statMask & FS_WRITE_STAT_UID)
|
if (statMask & B_STAT_UID)
|
||||||
inode->SetUserID(stat->st_uid);
|
inode->SetUserID(stat->st_uid);
|
||||||
if (statMask & FS_WRITE_STAT_GID)
|
if (statMask & B_STAT_GID)
|
||||||
inode->SetGroupID(stat->st_gid);
|
inode->SetGroupID(stat->st_gid);
|
||||||
|
|
||||||
if (statMask & FS_WRITE_STAT_MTIME)
|
if (statMask & B_STAT_MODIFICATION_TIME)
|
||||||
inode->SetModificationTime(stat->st_mtime);
|
inode->SetModificationTime(stat->st_mtime);
|
||||||
if (statMask & FS_WRITE_STAT_CRTIME)
|
if (statMask & B_STAT_CREATION_TIME)
|
||||||
inode->SetCreationTime(stat->st_crtime);
|
inode->SetCreationTime(stat->st_crtime);
|
||||||
|
|
||||||
volume->Unlock();
|
volume->Unlock();
|
||||||
|
|
||||||
notify_listener(B_STAT_CHANGED, volume->ID(), 0, 0, inode->ID(), NULL);
|
notify_stat_changed(volume->ID(), inode->ID(), statMask);
|
||||||
return B_OK;
|
return B_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user