Skip to content

Commit

Permalink
Filesystem.FAT: Fix flush and close
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabien-Chouteau committed Aug 4, 2017
1 parent 7b44cf6 commit cad2a50
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions middleware/src/filesystem/FAT/filesystem-fat-files.adb
Original file line number Diff line number Diff line change
Expand Up @@ -543,7 +543,8 @@ package body Filesystem.FAT.Files is
File.Buffer_Dirty := False;
end if;

return OK;
return Directories.Update_Entry (Parent => File.Parent,
Value => File.D_Entry);
end Flush;

----------
Expand Down Expand Up @@ -627,13 +628,9 @@ package body Filesystem.FAT.Files is

procedure Close (File : in out FAT_File_Handle)
is
pragma Unreferenced (File);
Status : Status_Code with Unreferenced;
begin
null;
-- Status : Status_Code with Unreferenced;
-- begin
-- Status := Directories.Update_Entry (File.Parent, File.D_Entry);
-- Status := Flush (File);
Status := Flush (File);
end Close;

end Filesystem.FAT.Files;

0 comments on commit cad2a50

Please sign in to comment.