Skip to content

Commit

Permalink
Merge pull request #434 from Wuerfel21/W21-fix-ff-flush-again
Browse files Browse the repository at this point in the history
Fix FatFS flush (again?) and remove unused function table
  • Loading branch information
totalspectrum committed Mar 24, 2024
2 parents 50fab98 + 7f662e0 commit ee48412
Showing 1 changed file with 1 addition and 31 deletions.
32 changes: 1 addition & 31 deletions include/filesys/fatfs/fatfs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -463,36 +463,6 @@ int v_deinit(const char *mountname)
return 0;
}

static struct vfs fat_vfs =
{
&v_close,
&v_read,
&v_write,
&v_lseek,

&v_ioctl,
&v_flush,
0, /* vfs_data */
0, /* reserved2 */

&v_open,
&v_creat,

&v_opendir,
&v_closedir,
&v_readdir,
&v_stat,

&v_mkdir,
&v_rmdir,
&v_remove,

&v_rename,

&v_init, /* init */
&v_deinit, /* deinit */
};

struct vfs *
get_vfs(void *ptr)
{
Expand All @@ -503,7 +473,7 @@ get_vfs(void *ptr)
v->write = &v_write;
v->lseek = &v_lseek;
v->ioctl = &v_ioctl;
v->flush = 0; // no flush function
v->flush = &v_flush;
v->vfs_data = ptr;
v->reserved = 0;

Expand Down

0 comments on commit ee48412

Please sign in to comment.