summaryrefslogtreecommitdiff
path: root/sys/fs/tmpfs.c
AgeCommit message (Collapse)Author
45 hourskernel: tmpfs: Prevent read() on empty filesIan Moffett
If we have never written to a tmpfs file, the buffer for it will have never been allocated and that would lead to NULL pointer issues such as system-wide crashes. Return zero bytes read if nothing was ever written. Signed-off-by: Ian Moffett <ian@osmora.org>
45 hourskernel: tmpfs: Do not NULL np->data during reclaimIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: tmpfs: Add tmpfs getattr callbackIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: tmpfs: Add 'mode' field to tmpfs nodesIan Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: tmpfs: Store the *real* size in a nodeIan Moffett
The 'len' field within the tmpfs node stores the buffer length which is relative to the tmpfs block size. Introduce a real size which returns the amount of data actually present within those buffers. Signed-off-by: Ian Moffett <ian@osmora.org>
6 dayskernel: tmpfs: Remove debugging kprintf()Ian Moffett
Signed-off-by: Ian Moffett <ian@osmora.org>
9 dayskernel: Add initial support for tmpfsIan Moffett
Introduce the initial support for tmpfs, a readable and writable in-memory filesystem. Signed-off-by: Ian Moffett <ian@osmora.org>