summaryrefslogtreecommitdiffstats
path: root/cpukit/libfs/src/rfs/rtems-rfs-block-pos.h
diff options
context:
space:
mode:
authorChris Johns <chrisj@rtems.org>2011-03-15 05:02:34 +0000
committerChris Johns <chrisj@rtems.org>2011-03-15 05:02:34 +0000
commitd0fcd0b8a660e12e2f99affe198f035cf2cf8256 (patch)
treef6bc0d4e897c276a21e6ebcd40766e5040c6377a /cpukit/libfs/src/rfs/rtems-rfs-block-pos.h
parent2011-03-14 Joel Sherrill <joel.sherrill@oarcorp.com> (diff)
downloadrtems-d0fcd0b8a660e12e2f99affe198f035cf2cf8256.tar.bz2
2011-03-15 Chris Johns <chrisj@rtems.org>
PR 1763/shell * libmisc/shell/hexdump-conv.c: Remove debug hacks. PR 1757/filesystem * libfs/src/rfs/rtems-rfs-block-pos.h, libfs/src/rfs/rtems-rfs-block.h, libfs/src/rfs/rtems-rfs-file.c, libfs/src/rfs/rtems-rfs-rtems-file.c: Set the file size in iop-size when a file is open. Fix lseek to end of file then write for sizes less than half the file system block size. * libfs/src/rfs/rtems-rfs-rtems-dev.c, libfs/src/rfs/rtems-rfs-rtems-dir.c, libfs/src/rfs/rtems-rfs-rtems.c, libfs/src/rfs/rtems-rfs-rtems.h: Fix the fstat and fchmod calls due to the change in the iop struct where pathinfo went away. The node_access field in pathinfo was overloaded.
Diffstat (limited to 'cpukit/libfs/src/rfs/rtems-rfs-block-pos.h')
-rw-r--r--cpukit/libfs/src/rfs/rtems-rfs-block-pos.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/cpukit/libfs/src/rfs/rtems-rfs-block-pos.h b/cpukit/libfs/src/rfs/rtems-rfs-block-pos.h
index bae67def3e..7f9955ae61 100644
--- a/cpukit/libfs/src/rfs/rtems-rfs-block-pos.h
+++ b/cpukit/libfs/src/rfs/rtems-rfs-block-pos.h
@@ -193,6 +193,12 @@ typedef struct rtems_rfs_block_size_s
if ((_b)->boff) --(_b)->bno; } while (0)
/**
+ * Do the sizes match ?
+ */
+#define rtems_rfs_block_size_equal(_lhs, _rhs) \
+ (((_lhs)->count == (_rhs)->count) && ((_lhs)->offset == (_rhs)->count))
+
+/**
* Zero a block size.
*
* @param size A pointer to the block size.