X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/4b6190b935dd75d8ddd514a05c7c7343e32c0cdc..95be6317c7ba61fc905f0f1a9bbe37e4340e969c:/lunaix-os/kernel/fs/fs_export.c diff --git a/lunaix-os/kernel/fs/fs_export.c b/lunaix-os/kernel/fs/fs_export.c index 13d6557..1fedef6 100644 --- a/lunaix-os/kernel/fs/fs_export.c +++ b/lunaix-os/kernel/fs/fs_export.c @@ -37,6 +37,15 @@ __mount_reset(struct twimap* map) map->index = container_of(all_mnts.next, struct v_mount, list); } +void +__version_rd(struct twimap* map) +{ + twimap_printf(map, + "Lunaix " + CONFIG_LUNAIX_VER + " (gnu-cc " __VERSION__ ") " __DATE__ " " __TIME__); +} + void vfs_export_attributes() { @@ -44,4 +53,8 @@ vfs_export_attributes() map->read = __mount_read; map->go_next = __mount_next; map->reset = __mount_reset; -} \ No newline at end of file + + map = twifs_mapping(NULL, NULL, "version"); + map->read = __version_rd; +} +EXPORT_TWIFS_PLUGIN(vfs_general, vfs_export_attributes); \ No newline at end of file