Skip to content

Commit 7d8d766

Browse files
guohao15GUIDINGLI
authored andcommitted
romfs:bugfix use origoffset instead of offset
origoffset represent the offset of current node offset represent the offset of the file when the current node is a soft or hard link Signed-off-by: guohao15 <[email protected]>
1 parent 3e58620 commit 7d8d766

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fs/romfs/fs_romfsutil.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -563,8 +563,8 @@ static int romfs_cachenode(FAR struct romfs_mountpt_s *rm,
563563
}
564564

565565
rm->rm_volsize += totalsize;
566-
ret = romfs_alloc_spareregion(&rm->rm_sparelist, offset,
567-
offset + totalsize);
566+
ret = romfs_alloc_spareregion(&rm->rm_sparelist, origoffset,
567+
origoffset + totalsize);
568568
if (ret < 0)
569569
{
570570
return ret;

0 commit comments

Comments
 (0)