From d608044bac1dbee20fa4580d9af77199ccc7cfb0 Mon Sep 17 00:00:00 2001 From: "K. Lange" Date: Mon, 9 Oct 2023 19:56:02 +0900 Subject: [PATCH] procfs: once opened, an entry should have a length so we can SEEK_END --- kernel/vfs/procfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/vfs/procfs.c b/kernel/vfs/procfs.c index ec063d15..5f2b148a 100644 --- a/kernel/vfs/procfs.c +++ b/kernel/vfs/procfs.c @@ -85,6 +85,7 @@ int procfs_printf(fs_node_t * node, const char * fmt, ...) { static void procfs_entry_open(fs_node_t * node, unsigned int flags) { procfs_entry_t * entry = (void*)node; entry->func(node); + node->length = entry->used; } static void procfs_entry_close(fs_node_t * node) {