Skip to content

Commit

Permalink
Fixed RIFS free space issue
Browse files Browse the repository at this point in the history
  • Loading branch information
andreas-jonsson committed Jan 25, 2024
1 parent 9898f3f commit 56836cd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/rifs/rifs.c
Original file line number Diff line number Diff line change
Expand Up @@ -324,13 +324,13 @@ static void process_request(struct rifs *fs, struct rifs_packet *pk) {
}
case IFS_GETSPACE:
{
// TODO: We just fake this and say we always have 63Mb of free space. :D
// TODO: We just fake this and say we always have 32Mb of free space. :D

vxt_word *dest = (vxt_word*)pk->data;
dest[0] = 63; // Available clusters
dest[1] = 64; // Total clusters
dest[2] = 1024; // Bytes per sector
dest[3] = 1024; // Sectors per cluster
dest[0] = 1024; // Sectors per cluster
dest[1] = 64; // Total clusters
dest[2] = 512; // Bytes per sector
dest[3] = 63; // Available clusters

pk->cmd = 0;
server_response(fs, pk, 8);
Expand Down

0 comments on commit 56836cd

Please sign in to comment.