Age | Commit message (Collapse) | Author |
|
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>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
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>
|
|
Signed-off-by: Ian Moffett <ian@osmora.org>
|
|
Introduce the initial support for tmpfs, a readable and writable in-memory
filesystem.
Signed-off-by: Ian Moffett <ian@osmora.org>
|