Ticket #5262: vfs.patch
File vfs.patch, 889 bytes (added by , 12 years ago) |
---|
-
vfs.cpp
old new 3621 3621 3622 3622 // file system integrity check: 3623 3623 // test if the vnode already exists and bail out if this is the case! 3624 if (!nodeCreated) { 3624 3625 if (nodeCreated) { 3626 vnode->private_node = privateNode; 3627 vnode->ops = ops; 3628 vnode->SetUnpublished(true); 3629 } else if (vnode->IsBusy() && vnode->IsUnpublished() 3630 && vnode->private_node == privateNode && vnode->ops == ops) { 3631 // already known, but not published 3632 } else 3633 return B_BAD_VALUE; 3634 3635 3636 /* if (!nodeCreated) { 3637 Note: accessing vnode here would SEGFAULT from create_new_vnode_and_lock() 3625 3638 panic("vnode %ld:%Ld already exists (node = %p, vnode->node = %p)!", 3626 3639 volume->id, vnodeID, privateNode, vnode->private_node); 3627 3640 return B_ERROR; 3628 } 3641 } */ 3629 3642 3630 3643 vnode->private_node = privateNode; 3631 3644 vnode->ops = ops;