mirror of
https://github.com/apache/nuttx.git
synced 2026-06-06 00:14:22 +08:00
Add basic NXFFS read logic
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@3546 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
@@ -820,7 +820,7 @@ static int nxffs_wrclose(FAR struct nxffs_volume_s *volume,
|
||||
{
|
||||
/* Write the block with the inode header */
|
||||
|
||||
ret = nxffs_wrcache(volume, volume->ioblock, 1);
|
||||
ret = nxffs_wrcache(volume);
|
||||
if (ret < 0)
|
||||
{
|
||||
fdbg("Failed to write inode header block %d: %d\n", volume->ioblock, -ret);
|
||||
@@ -842,7 +842,7 @@ static int nxffs_wrclose(FAR struct nxffs_volume_s *volume,
|
||||
/* Finally, copy the inode name to the cache and write the inode name block */
|
||||
|
||||
memcpy(&volume->cache[namoffset], wrfile->ofile.entry.name, namlen);
|
||||
ret = nxffs_wrcache(volume, volume->ioblock, 1);
|
||||
ret = nxffs_wrcache(volume);
|
||||
if (ret < 0)
|
||||
{
|
||||
fdbg("Failed to write inode header block %d: %d\n", volume->ioblock, -ret);
|
||||
|
||||
Reference in New Issue
Block a user