diff --git a/src/kernel/core/fs/bootfs.c b/src/kernel/core/fs/bootfs.c index 2b7b7b1906..55e0d1b2d6 100755 --- a/src/kernel/core/fs/bootfs.c +++ b/src/kernel/core/fs/bootfs.c @@ -10,6 +10,7 @@ #include #include #include +#include #include @@ -468,6 +469,18 @@ bootfs_unmount(fs_volume _fs) } +static status_t +bootfs_read_fs_info(fs_volume _fs, fs_info *info) +{ + strlcpy(info->volume_name, "OpenBeOS", B_FILE_NAME_LENGTH); + info->flags = B_FS_IS_PERSISTENT | B_FS_IS_READONLY; + info->total_blocks = 0; + info->free_blocks = 0; + + return B_OK; +} + + static status_t bootfs_sync(fs_volume fs) { @@ -909,8 +922,8 @@ bootfs_write_stat(fs_volume _fs, fs_vnode _v, const struct stat *stat, int statM static struct fs_ops bootfs_ops = { &bootfs_mount, &bootfs_unmount, - NULL, - NULL, + &bootfs_read_fs_info, + NULL, // write_fs_info &bootfs_sync, &bootfs_lookup,