Changeset 25404

Show
Ignore:
Timestamp:
05/09/08 16:21:22 (3 days ago)
Author:
bonefish
Message:
Don't create anything in a removed directory. Axel, please review. I
don't see how the locking in Remove()/Create() works.
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • haiku/trunk/src/add-ons/kernel/file_systems/bfs/Inode.cpp

    r25249 r25404  
    23212321                // the parent directory is locked during the whole inode creation 
    23222322 
     2323        if (parent != NULL && parent->IsDirectory()) { 
     2324                // don't create anything in removed directories 
     2325                bool removed; 
     2326                if (get_vnode_removed(volume->FSVolume(), parent->ID(), &removed) 
     2327                                != B_OK || removed) { 
     2328                        RETURN_ERROR(B_ENTRY_NOT_FOUND); 
     2329                } 
     2330        } 
     2331 
    23232332        if (tree != NULL) { 
    23242333                // Does the file already exist?