vfs: make write buf const

Signed-off-by: Michael Shaw <m@michaelsshaw.com>
This commit is contained in:
Michael Shaw 2026-07-19 20:39:02 -04:00
commit fdc7d5ce5c
2 changed files with 2 additions and 2 deletions

View file

@ -13,7 +13,7 @@ typedef struct _fs fs_t;
struct inode_ops {
ssize_t (*read)(inode_t *inode, char *buf, size_t size, size_t offset);
ssize_t (*write)(inode_t *inode, char *buf, size_t size, size_t offset);
ssize_t (*write)(inode_t *inode, const char *buf, size_t size, size_t offset);
int (*link)(inode_t *parent_dir, inode_t *child, const char *name, dirent_t **out);
int (*unlink)(inode_t *parent_dir, const char *name);

View file

@ -118,7 +118,7 @@ fs_t *vfs_get_root(void);
struct mount *vfs_get_root_mount(void);
struct mount *mount_find_child(struct mount *parent, dirent_t *dent);
ssize_t vfs_write(inode_t *ino, char *buf, size_t size, size_t offset);
ssize_t vfs_write(inode_t *ino, const char *buf, size_t size, size_t offset);
ssize_t vfs_read(inode_t *ino, char *buf, size_t size, size_t offset);
#endif /* _VFS_H_ */