summaryrefslogtreecommitdiffstats
path: root/c/src/lib/libbsp
diff options
context:
space:
mode:
authorFan Deng <enetor@gmail.com>2017-10-10 16:32:41 -0700
committerChris Johns <chrisj@rtems.org>2018-04-11 11:51:57 +1000
commitd869c1824aa3239005a969c025a69c182d560e16 (patch)
treead7bb1943a1d881a4dca55ac9b0e2fc6016ed225 /c/src/lib/libbsp
parentFixes bitmap allocation accounting logic in rtems-rfs-bitmaps.c (diff)
downloadrtems-d869c1824aa3239005a969c025a69c182d560e16.tar.bz2
Fill in the correct d_off in rtems_rfs_dir_read.
rtems_rfs_dir_read searches the directory inode's entries list starting at the specified offset until an empty entry (last entry) is encountered. It fills in a struct dirent with the name of the entry, length of the name, ino of the entry, and the absolute offset of the entry in the parent directory's entries list. Unfortunately, the stock implementation of rtems_rfs_dir_read returns a somewhat arbitrary offset (as dirent::d_off), while rtems_rfs_dir_lookup_ino always returns the correct offset. This change fixes that logic so the returned offset is accurate. Tested by comparing the offset returned in dirent with the result of rtems_rfs_dir_lookup_ino.
Diffstat (limited to 'c/src/lib/libbsp')
0 files changed, 0 insertions, 0 deletions