git://scm.lunaixsky.com
/
lunaix-os.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Introducing LunaBuild to the build flow (#36)
[lunaix-os.git]
/
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 13d65577fc62f9c9bf15af52d6db977f9f9e89e3..dffff0ae70f50b4042084be127a51f32c132fa8b 100644
(file)
--- a/
lunaix-os/kernel/fs/fs_export.c
+++ b/
lunaix-os/kernel/fs/fs_export.c
@@
-37,6
+37,17
@@
__mount_reset(struct twimap* map)
map->index = container_of(all_mnts.next, struct v_mount, list);
}
map->index = container_of(all_mnts.next, struct v_mount, list);
}
+void
+__version_rd(struct twimap* map)
+{
+ twimap_printf(map,
+ "LunaixOS version %s (gnu-cc %s) %s %s",
+ CONFIG_LUNAIX_VER,
+ __VERSION__,
+ __DATE__,
+ __TIME__);
+}
+
void
vfs_export_attributes()
{
void
vfs_export_attributes()
{
@@
-44,4
+55,8
@@
vfs_export_attributes()
map->read = __mount_read;
map->go_next = __mount_next;
map->reset = __mount_reset;
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