diff options
author | Freya Murphy <freya@freyacat.org> | 2025-04-30 11:43:59 -0400 |
---|---|---|
committer | Freya Murphy <freya@freyacat.org> | 2025-04-30 11:43:59 -0400 |
commit | ddf8b4458aa3f83f697c23b63ec74cec57c9aa59 (patch) | |
tree | c4f2732519c78492f45f6ac1b4ca9eb52f07567c /kernel | |
parent | update fs headers 3.0 (diff) | |
download | comus-ddf8b4458aa3f83f697c23b63ec74cec57c9aa59.tar.gz comus-ddf8b4458aa3f83f697c23b63ec74cec57c9aa59.tar.bz2 comus-ddf8b4458aa3f83f697c23b63ec74cec57c9aa59.zip |
fmt
Diffstat (limited to '')
-rw-r--r-- | kernel/fs/fs.c | 4 | ||||
-rw-r--r-- | kernel/include/comus/fs.h | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/kernel/fs/fs.c b/kernel/fs/fs.c index f9b3959..a887ca4 100644 --- a/kernel/fs/fs.c +++ b/kernel/fs/fs.c @@ -39,7 +39,6 @@ static void load_disks(void) } INFO("loaded %zu disks", idx); - } static void load_fs(struct disk *disk) @@ -235,7 +234,8 @@ int disk_write(struct disk *disk, size_t offset, size_t len, void *buffer) ret = disk_write_ata(disk, offset, len, buffer); break; default: - ERROR("attempted to write to disk with invalid type: %d\n", disk->d_type); + ERROR("attempted to write to disk with invalid type: %d\n", + disk->d_type); ret = -E_BAD_PARAM; } diff --git a/kernel/include/comus/fs.h b/kernel/include/comus/fs.h index 5989afc..2f678b6 100644 --- a/kernel/include/comus/fs.h +++ b/kernel/include/comus/fs.h @@ -200,9 +200,11 @@ struct file_system { /// filesystem name const char *fs_name; /// opens a file - int (*open)(struct file_system *fs, const char *fullpath, struct file **out); + int (*open)(struct file_system *fs, const char *fullpath, + struct file **out); /// stats a file - int (*stat)(struct file_system *fs, const char *fullpath, struct stat *file); + int (*stat)(struct file_system *fs, const char *fullpath, + struct stat *file); }; // list of all disks on the system |