From 0a127c5591ec0b3e3c58e84702328e15809605e2 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Mon, 11 Oct 2010 04:34:48 +0000 Subject: 2010-10-11 Chris Johns * libfs/src/rfs/rtems-rfs-trace.c, libfs/src/rfs/rtems-rfs-trace.h: Add inode-delete. * libfs/src/rfs/rtems-rfs-shell.c: Fix formatting. * libfs/src/rfs/rtems-rfs-rtems-dir.c: Use ssize_t. Fix spelling. * libfs/src/rfs/rtems-rfs-block.c: Fix rtems_rfs_block_get_bpos to return the position correctly. A bpos does not have any special processing. Do no reset the buffer handle when shrinking indirectly. * libfs/src/rfs/rtems-rfs-inode.c: Add trace. * libfs/src/rfs/rtems-rfs-format.c: Fix comments. * libfs/src/rfs/rtems-rfs-group.c: Limit the inodes to the blocks in a group so the accounting works. * libfs/src/rfs/rtems-rfs-dir.c: PR 1705. Fix handling the offsets when deleting an entry. * libfs/src/rfs/rtems-rfs-buffer.h: Remove rtems_rfs_buffer_handle_reset. It is not needed and dangerous. --- cpukit/libfs/src/rfs/rtems-rfs-inode.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cpukit/libfs/src/rfs/rtems-rfs-inode.c') diff --git a/cpukit/libfs/src/rfs/rtems-rfs-inode.c b/cpukit/libfs/src/rfs/rtems-rfs-inode.c index 030ee82102..608048e84b 100644 --- a/cpukit/libfs/src/rfs/rtems-rfs-inode.c +++ b/cpukit/libfs/src/rfs/rtems-rfs-inode.c @@ -296,6 +296,12 @@ rtems_rfs_inode_delete (rtems_rfs_file_system* fs, rtems_rfs_inode_handle* handle) { int rc = 0; + + if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_DELETE)) + printf("rtems-rfs: inode-delete: ino:%" PRIu32 " loaded:%s\n", + rtems_rfs_inode_ino (handle), + rtems_rfs_inode_is_loaded (handle) ? "yes" : "no"); + if (rtems_rfs_inode_is_loaded (handle)) { rtems_rfs_block_map map; -- cgit v1.2.3