diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-10-02 15:44:59 +0200 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2012-10-07 17:03:20 +0200 |
commit | c17d0b315baf3f3a3afb862f64d0acf424088442 (patch) | |
tree | 4b659a3d629d590525cadec5a32e57fd1ec8ad78 /cpukit/libfs/src/imfs/imfs_rmnod.c | |
parent | score: Critical fix for thread dispatching (diff) | |
download | rtems-c17d0b315baf3f3a3afb862f64d0acf424088442.tar.bz2 |
Filesystem: Reject removal of root nodes
Reject the removal of file system instance root nodes in rmdir() and
unlink() and return the EBUSY error status. File system instances can
be removed with unmount(). Remove root node special cases in IMFS,
DOSFS, and RFS.
Diffstat (limited to 'cpukit/libfs/src/imfs/imfs_rmnod.c')
-rw-r--r-- | cpukit/libfs/src/imfs/imfs_rmnod.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/cpukit/libfs/src/imfs/imfs_rmnod.c b/cpukit/libfs/src/imfs/imfs_rmnod.c index a0fa1d654c..90e61d9ee9 100644 --- a/cpukit/libfs/src/imfs/imfs_rmnod.c +++ b/cpukit/libfs/src/imfs/imfs_rmnod.c @@ -29,10 +29,7 @@ int IMFS_rmnod( int rv = 0; IMFS_jnode_t *node = loc->node_access; - node = (*node->control->node_remove)( - node, - loc->mt_entry->mt_fs_root->location.node_access - ); + node = (*node->control->node_remove)( node ); if ( node != NULL ) { --node->reference_count; --node->st_nlink; |