Re: [PATCH v2] procfs: set d_type on returned direntries

2025-01-20 Thread Diego Nieto Cid
On Tue, Jan 21, 2025 at 01:02:12AM +0100, Samuel Thibault wrote: > > Sorry for the back&forth, we couldn't know before trying. > No problem, I'll drop this patch then. Thanks

Re: [PATCH v2] procfs: set d_type on returned direntries

2025-01-20 Thread Samuel Thibault
Hello, dnie...@gmail.com, le lun. 20 janv. 2025 23:47:58 +, a ecrit: > From: Diego Nieto Cid > > Thanks for the pointer Samuel. I managed to call procfs_lookup > and extract from the node stat structure its type. > > It mostly works except for the ".." and "self" entries: > > ./test-pr

[PATCH v2] procfs: set d_type on returned direntries

2025-01-20 Thread dnietoc
From: Diego Nieto Cid Hello, Thanks for the pointer Samuel. I managed to call procfs_lookup and extract from the node stat structure its type. It mostly works except for the ".." and "self" entries: ./test-proc//..: d_type: 0 ./test-proc//self: d_type: 0 Well "self" is probably a syml

Re: [PATCH] procfs: set d_type on returned direntries

2025-01-20 Thread Samuel Thibault
Hello, dnie...@gmail.com, le dim. 19 janv. 2025 23:50:10 +, a ecrit: > diff --git a/procfs/netfs.c b/procfs/netfs.c > index 4ed5eab6..3cf7a8e2 100644 > --- a/procfs/netfs.c > +++ b/procfs/netfs.c > @@ -115,6 +115,29 @@ error_t netfs_attempt_readlink (struct iouser *user, > struct node *np, >