X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/blobdiff_plain/ea77b9c3fc7fb9bf9d7f9604fc187c8049212a2a..b26d3165c52589d1f8de37bf0df27ad96f460f47:/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..046204f 100644 --- a/lunaix-os/kernel/fs/fs_export.c +++ b/lunaix-os/kernel/fs/fs_export.c @@ -37,6 +37,18 @@ __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, + "LunaixOS version %s (%s-gnu-gcc %s) %s %s", + LUNAIX_VER, + PLATFORM_TARGET, + __VERSION__, + __DATE__, + __TIME__); +} + void vfs_export_attributes() { @@ -44,4 +56,7 @@ vfs_export_attributes() map->read = __mount_read; map->go_next = __mount_next; map->reset = __mount_reset; + + map = twifs_mapping(NULL, NULL, "version"); + map->read = __version_rd; } \ No newline at end of file