summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/nfsclient/src/nfs.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2014-12-21 20:12:28 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2015-01-22 07:52:40 +0100
commitc625a641218fbda23582354b3cfc7a7c7a4e4287 (patch)
tree82853d039ebb88fb4e7afe0b572c1d072a3f4d00 /cpukit/libfs/src/nfsclient/src/nfs.c
parentpowerpc: Fix AltiVec VSCR save/restore (diff)
downloadrtems-c625a641218fbda23582354b3cfc7a7c7a4e4287.tar.bz2
Filesystem: Delete node type operation
Use the fstat handler instead.
Diffstat (limited to 'cpukit/libfs/src/nfsclient/src/nfs.c')
-rw-r--r--cpukit/libfs/src/nfsclient/src/nfs.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/cpukit/libfs/src/nfsclient/src/nfs.c b/cpukit/libfs/src/nfsclient/src/nfs.c
index 9b19bf4dcd..9ce5924ca8 100644
--- a/cpukit/libfs/src/nfsclient/src/nfs.c
+++ b/cpukit/libfs/src/nfsclient/src/nfs.c
@@ -1988,41 +1988,6 @@ LOCK(nfsGlob.llock);
UNLOCK(nfsGlob.llock);
}
-/* OPTIONAL; may be NULL - BUT: CAUTION; mount() doesn't check
- * for this handler to be present - a fs bug
- * //NOTE: (10/25/2002) patch submitted and probably applied
- */
-static rtems_filesystem_node_types_t nfs_node_type(
- const rtems_filesystem_location_info_t *loc
-)
-{
-NfsNode node = loc->node_access;
-
- if (updateAttr(node, 0 /* only if old */))
- return -1;
-
- switch( SERP_ATTR(node).type ) {
- default:
- /* rtems has no value for 'unknown';
- */
- case NFNON:
- case NFSOCK:
- case NFBAD:
- case NFFIFO:
- break;
-
-
- case NFREG: return RTEMS_FILESYSTEM_MEMORY_FILE;
- case NFDIR: return RTEMS_FILESYSTEM_DIRECTORY;
-
- case NFBLK:
- case NFCHR: return RTEMS_FILESYSTEM_DEVICE;
-
- case NFLNK: return RTEMS_FILESYSTEM_SYM_LINK;
- }
- return -1;
-}
-
static int nfs_mknod(
const rtems_filesystem_location_info_t *parentloc,
const char *name,
@@ -2315,7 +2280,6 @@ const struct _rtems_filesystem_operations_table nfs_fs_ops = {
.eval_path_h = nfs_eval_path,
.link_h = nfs_link,
.are_nodes_equal_h = nfs_are_nodes_equal,
- .node_type_h = nfs_node_type,
.mknod_h = nfs_mknod,
.rmnod_h = nfs_rmnod,
.fchmod_h = nfs_fchmod,