]> xenbits.xensource.com Git - mini-os.git/commit
Mini-OS: add concept of mount points
authorJuergen Gross <jgross@suse.com>
Mon, 13 Feb 2023 08:44:07 +0000 (09:44 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 20 Feb 2023 15:17:35 +0000 (15:17 +0000)
commit15e0ed068007e55aa6bddd80c03ddda1ed758cdb
tree0fa102e579e477b177cf15a43ae0b9c581326825
parent17a0d062c23026f4768c51c793c1ab35f501ad78
Mini-OS: add concept of mount points

Add the concept of mount points to Mini-OS. A mount point is a path
associated with a device pointer and an open() callback. A mount point
can be either a file (e.g. "/dev/mem") or a directory ("/var/log").

This allows to replace the special casing in the generic open()
handling with a generic mount point handling.

Prepare the open() callbacks to support creating new files by adding a
mode parameter.

Additionally add a close() prototype to include/lib.h, as it is missing
today.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Samuel Thibault <samuel.thibault@ens-lyon.org>
include/lib.h
lib/sys.c