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
c. That becomes actually quite heavy. I'm now
thinking that perhaps best would be to make libgtop use lstat as readdir
says.
Sorry for the back&forth, we couldn't know before trying.
Samuel
> That are all the comments for version 2 of the patch.
>
> Regards,
>
ink I got the locking correctly.
That are all the comments for version 2 of the patch.
Regards,
Diego
-- >8 -- >8 -- >8 --
---
procfs/netfs.c | 17 +
1 file changed, 13 insertions(+), 4 deletions(-)
diff --git a/procfs/netfs.c b/procfs/netfs.c
index 4ed5eab6..83db7517
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,
&g
From: Diego Nieto Cid
Hello,
This sets d_type to DT_DIR in those entries of procfs
which are actually directories; which allows libgtop
to list processes using the linux port code.
Hope this is what you had in mind Samuel. It's not
very robust, but I couldn't find other way to do it
* hurd/translator.mdwn: link to procfs
* hurd/translator.mdwn: tweak the page a little.
---
hurd/translator.mdwn| 1 +
hurd/translator/procfs.mdwn | 14 +++---
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/hurd/translator.mdwn b/hurd/translator.mdwn
index
Applied, thanks!
Flavio Cruz, le dim. 21 janv. 2024 16:07:53 -0500, a ecrit:
> Not needed since b2c97e251bb470e6f967c716081675a96dbde59c
> ---
> procfs/rootdir.c | 8
> 1 file changed, 8 deletions(-)
>
> diff --git a/procfs/rootdir.c b/procfs/rootdir.c
> index 77
Not needed since b2c97e251bb470e6f967c716081675a96dbde59c
---
procfs/rootdir.c | 8
1 file changed, 8 deletions(-)
diff --git a/procfs/rootdir.c b/procfs/rootdir.c
index 7742edd..206a541 100644
--- a/procfs/rootdir.c
+++ b/procfs/rootdir.c
@@ -706,14 +706,6 @@ rootdir_file_make_node
---
procfs/process.c | 18 +-
procfs/rootdir.c | 8
2 files changed, 13 insertions(+), 13 deletions(-)
diff --git a/procfs/process.c b/procfs/process.c
index eaf5f45b..3170b775 100644
--- a/procfs/process.c
+++ b/procfs/process.c
@@ -162,17 +162,17
Applied, thanks!
Sergey Bugaev, le mar. 18 avril 2023 13:49:02 +0300, a ecrit:
> This was always showing up as 0, because apparently we need to query
> creation_time for the task, not a thread.
>
> Here's a before vs after comparison:
>
> $ cat /proc/self/stat ~/procfs/se
This was always showing up as 0, because apparently we need to query
creation_time for the task, not a thread.
Here's a before vs after comparison:
$ cat /proc/self/stat ~/procfs/self/stat
11151 (cat) S 26571 11151 26571 0 0 0 0 0 0 0 1 0 0 0 20 0 2 0 0 154783744 251
0 134443008 134477480
Applied, thanks!
Damien Zammit, le mar. 20 sept. 2022 03:01:59 +, a ecrit:
> ---
> procfs/Makefile | 2 +-
> procfs/rootdir.c | 77
> 2 files changed, 78 insertions(+), 1 deletion(-)
>
> diff --git a/procfs/Makefile
---
procfs/Makefile | 2 +-
procfs/rootdir.c | 77
2 files changed, 78 insertions(+), 1 deletion(-)
diff --git a/procfs/Makefile b/procfs/Makefile
index 13ee026c..d32328d2 100644
--- a/procfs/Makefile
+++ b/procfs/Makefile
@@ -21,7 +21,7
Hello,
Damien Zammit, le ven. 09 sept. 2022 09:43:01 +, a ecrit:
> This requires the new client side to be installed.
I'm not sure to understand what you mean. The installed
comes from the glibc package, not the hurd package.
> diff --git a/procfs/rootdir.c b/procfs/rootdi
This requires the new client side to be installed.
---
procfs/Makefile | 2 +-
procfs/rootdir.c | 78
2 files changed, 79 insertions(+), 1 deletion(-)
diff --git a/procfs/Makefile b/procfs/Makefile
index 13ee026c..d32328d2 100644
--- a/procfs
Hello,
The principe looks good, just a few comments below.
Samuel
Damien Zammit, le ven. 02 sept. 2022 09:06:38 +, a ecrit:
> diff --git a/procfs/rootdir.c b/procfs/rootdir.c
> index 0e7c05c00..deddaa43f 100644
> --- a/procfs/rootdir.c
> +++ b/procfs/rootdir.c
> @@ -408,6
This exposes network routing table on /proc/route
---
procfs/Makefile | 2 +-
procfs/rootdir.c | 74
2 files changed, 75 insertions(+), 1 deletion(-)
diff --git a/procfs/Makefile b/procfs/Makefile
index 13ee026c4..d32328d28 100644
--- a/procfs
---
procfs/Makefile | 2 +-
procfs/rootdir.c | 43 +++
2 files changed, 44 insertions(+), 1 deletion(-)
diff --git a/procfs/Makefile b/procfs/Makefile
index 13ee026c4..d32328d28 100644
--- a/procfs/Makefile
+++ b/procfs/Makefile
@@ -21,7 +21,7
s/nref.c:26
> #5 0x0804c9f4 in rootdir_make_translated_node (dir_hook=0x10001990,
> entry_hook=0x8055180 <__compound_literal.8>)
> at ../../procfs/rootdir.c:674
> #6 0x0804ace3 in procfs_dir_lookup (hook=0x10001c10, name=0x2857efc
> "mounts", np=0x2855d68)
5009a0) at
../../libshouldbeinlibc/refcount.h:170
#4 netfs_nref (np=0x15008f0) at ../../libnetfs/nref.c:26
#5 0x0804c9f4 in rootdir_make_translated_node (dir_hook=0x10001990,
entry_hook=0x8055180 <__compound_literal.8>)
at ../../procfs/rootdir.c:674
#6 0x0804ace3 in procfs_dir_lookup
This fixes the procfs crash that happens on shutdown, previously discussed
here: https://lists.debian.org/debian-hurd/2021/04/msg00035.html
Sergey Bugaev (1):
procfs: Fix use-after-free
procfs/rootdir.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
--
2.31.1
---
procfs/process.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/procfs/process.c b/procfs/process.c
index 6e4c1515..61e7cde4 100644
--- a/procfs/process.c
+++ b/procfs/process.c
@@ -387,9 +387,12 @@ process_file_get_contents (void *hook, char **contents,
ssize_t
---
procfs/process.c | 7 +--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/procfs/process.c b/procfs/process.c
index 6e4c1515..61e7cde4 100644
--- a/procfs/process.c
+++ b/procfs/process.c
@@ -387,9 +387,12 @@ process_file_get_contents (void *hook, char **contents,
ssize_t
Hi!
On Tue, 29 Dec 2015 23:11:26 +0100, Flavio Cruz wrote:
> procfs: Fix compiler warnings.
>
> * include/sys/procfs.h: Change uintptr_t to vm_address_t.
> * procfs/process.c: Fix format strings.
> * procfs/rootdir.c: Add missing casts.
(Note that the header file does not relat
* procfs/netfs.c: Remove use of netfs_node_refcnt_lock.
---
procfs/netfs.c | 4
1 file changed, 4 deletions(-)
diff --git a/procfs/netfs.c b/procfs/netfs.c
index 276c57c..0b3d31a 100644
--- a/procfs/netfs.c
+++ b/procfs/netfs.c
@@ -222,12 +222,8 @@ error_t netfs_attempt_lookup (struct
Applied, thanks!
---
procfs: Fix compiler warnings.
* include/sys/procfs.h: Change uintptr_t to vm_address_t.
* procfs/process.c: Fix format strings.
* procfs/rootdir.c: Add missing casts.
diff --git a/include/sys/procfs.h b/include/sys/procfs.h
index ec82308..09d2030 100644
--- a/include/sys/procfs.h
+++ b
]].
* Add a relatime or lazytime option to ext2fs.
* Fix our [[open_issues/symlink_translator]].
+* Add `/proc/cpuinfo` support to procfs. This work could be based on some
patches produced in 2011 by Bouju Alain, see
<https://lists.gnu.org/archive/html/bug-hurd/2011-11/msg00079.h
Signed-off-by: Stefan Weil
---
procfs/TODO | 2 +-
procfs/main.c| 2 +-
procfs/process.c | 4 ++--
procfs/procfs.h | 2 +-
4 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/procfs/TODO b/procfs/TODO
index 952d67b..90e4420 100644
--- a/procfs/TODO
+++ b/procfs/TODO
@@ -12,7
URL:
<http://savannah.gnu.org/patch/?8586>
Summary: Make sure to free content dir in procfs
Project: The GNU Hurd
Submitted by: lsix
Submitted on: Thu 25 Dec 2014 09:14:06 PM GMT
Category: othe
Justus Winter, le Fri 05 Sep 2014 10:42:56 +0200, a écrit :
> * procfs/main.c (common_options): If possible, do not hard-code the
> default values.
Ack.
> ---
> procfs/main.c | 6 +++---
> 1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/procfs/main.c b/
> > + "proc/self/..." means replace `proc/self' with the PID of the current
> > +process and then retry as for FS_RETRY_NORMAL.
>
> Roland, does it look OK to use a FS_RETRY_MAGICAL for implementing
> /proc/self?
FS_RETRY_MAGICAL is appropriate. But the string itself should m
Hello,
Justus Winter, le Mon 22 Sep 2014 11:38:44 +0200, a écrit :
> diff --git a/hurd/hurd_types.h b/hurd/hurd_types.h
> index 4341177..f22816d 100644
> --- a/hurd/hurd_types.h
> +++ b/hurd/hurd_types.h
> @@ -114,6 +114,9 @@ enum retry_type
> as for FS_RETRY_NORMAL.
>
>
Justus Winter, le Mon 22 Sep 2014 11:38:43 +0200, a écrit :
> * procfs/rootdir.c: Move the translator linkage code to the
> appropriate location.
Ack.
> ---
> procfs/rootdir.c | 153
> ---
> 1 file changed, 77 insertion
Justus Winter, le Mon 22 Sep 2014 11:38:42 +0200, a écrit :
> Generalize the translator linkage code previously introduced for the
> `mounts' node.
Ack.
> * procfs/rootdir.c (struct procfs_translated_node_ops): New
> specialized node operations structure for
Justus Winter, le Mon 22 Sep 2014 11:38:41 +0200, a écrit :
> Now that procfs is merged into the Hurd repository we can just assume
> that the mtab translator exists.
Ack
> * procfs/rootdir.c (rootdir_mounts_exists): Drop function.
> (rootdir_entries): Adjust accordingly.
>
Justus Winter, le Mon 22 Sep 2014 11:38:40 +0200, a écrit :
> * procfs/process.c (process_gc_mounts): New function.
> (process_symlink_make_node): Likewise.
> (entries): Use the new functions to provide a symlink to ../mounts.
Mmm, I wouldn't lie like this: don't we have per-pr
Justus Winter, le Mon 22 Sep 2014 11:38:39 +0200, a écrit :
> * procfs/rootdir.c (rootdir_gc_filesystems): New function.
> (rootdir_entries): Use the new function to implement /proc/filesystems.
Ack.
> ---
> procfs/rootdir.c | 61
> ++
Justus Winter, le Mon 22 Sep 2014 11:38:38 +0200, a écrit :
> Fixes https://savannah.gnu.org/bugs/?32770 .
Ack.
> * procfs/process.c (process_file_gc_maps): New function.
> (entries): Use the new function to implement /proc/N/maps.
> ---
> procfs/
* hurd/hurd_types.h: Document the magic retry string `proc/self'.
* hurd/paths.h (_HURD_MAGIC): New macro.
* procfs/main.c: Remove all code related to faking /proc/self.
* procfs/main.h: Likewise.
* procfs/rootdir.c: Likewise. Instead, return the magic retry
response `proc/self' for
* procfs/rootdir.c: Move the translator linkage code to the
appropriate location.
---
procfs/rootdir.c | 153 ---
1 file changed, 77 insertions(+), 76 deletions(-)
diff --git a/procfs/rootdir.c b/procfs/rootdir.c
index a04fb3e..d68645e 100644
Fixes https://savannah.gnu.org/bugs/?32770 .
* procfs/process.c (process_file_gc_maps): New function.
(entries): Use the new function to implement /proc/N/maps.
---
procfs/process.c | 104 ++-
1 file changed, 103 insertions(+), 1 deletion
Generalize the translator linkage code previously introduced for the
`mounts' node.
* procfs/rootdir.c (struct procfs_translated_node_ops): New
specialized node operations structure for translated nodes.
(rootdir_mounts_make_node): Generalize and rename to
rootdir_make_translated_node.
* procfs/rootdir.c (rootdir_gc_filesystems): New function.
(rootdir_entries): Use the new function to implement /proc/filesystems.
---
procfs/rootdir.c | 61 +++-
1 file changed, 60 insertions(+), 1 deletion(-)
diff --git a/procfs/rootdir.c b
Now that procfs is merged into the Hurd repository we can just assume
that the mtab translator exists.
* procfs/rootdir.c (rootdir_mounts_exists): Drop function.
(rootdir_entries): Adjust accordingly.
---
procfs/rootdir.c | 10 --
1 file changed, 10 deletions(-)
diff --git a/procfs
* procfs/process.c (process_gc_mounts): New function.
(process_symlink_make_node): Likewise.
(entries): Use the new functions to provide a symlink to ../mounts.
---
procfs/process.c | 27 +++
1 file changed, 27 insertions(+)
diff --git a/procfs/process.c b/procfs
Quoting Justus Winter (2014-09-21 12:12:34)
> Generalize the translator linkage code previously introduced for the
> `mounts' node.
> ...
> (ROOTDIR_DEFINE_TRANSLATED_NODE): New convenience macro to define
> translated nodes.
> ...
> +#define ROOTDIR_DEFINE_TRANSLATED_NODE(ARGZ)
Now that procfs is merged into the Hurd repository we can just assume
that the mtab translator exists.
* procfs/rootdir.c (rootdir_mounts_exists): Drop function.
(rootdir_entries): Adjust accordingly.
---
procfs/rootdir.c | 10 --
1 file changed, 10 deletions(-)
diff --git a/procfs
* procfs/rootdir.c: Move the translator linkage code to the
appropriate location.
---
procfs/rootdir.c | 153 ---
1 file changed, 77 insertions(+), 76 deletions(-)
diff --git a/procfs/rootdir.c b/procfs/rootdir.c
index 32e46a0..6f0604a 100644
* procfs/process.c (process_gc_mounts): New function.
(process_symlink_make_node): Likewise.
(entries): Use the new functions to provide a symlink to ../mounts.
---
procfs/process.c | 27 +++
1 file changed, 27 insertions(+)
diff --git a/procfs/process.c b/procfs
* hurd/paths.h (_HURD_MAGIC): New macro.
* procfs/main.c: Remove all code related to faking /proc/self.
* procfs/main.h: Likewise.
* procfs/rootdir.c: Likewise. Instead, return the magic retry
response `proc/self' for the `self' node.
---
hurd/paths.h | 1 +
procfs/main
Generalize the translator linkage code previously introduced for the
`mounts' node.
* procfs/rootdir.c (struct procfs_translated_node_ops): New
specialized node operations structure for translated nodes.
(rootdir_mounts_make_node): Generalize and rename to
rootdir_make_translated_node.
* procfs/rootdir.c (rootdir_gc_filesystems): New function.
(rootdir_entries): Use the new function to implement /proc/filesystems.
---
procfs/rootdir.c | 61 +++-
1 file changed, 60 insertions(+), 1 deletion(-)
diff --git a/procfs/rootdir.c b
Fixes https://savannah.gnu.org/bugs/?32770 .
* procfs/process.c (process_file_gc_maps): New function.
(entries): Use the new function to implement /proc/N/maps.
---
procfs/process.c | 104 ++-
1 file changed, 103 insertions(+), 1 deletion
* procfs/main.c (common_options): If possible, do not hard-code the
default values.
---
procfs/main.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/procfs/main.c b/procfs/main.c
index f3067d9..36a2d25 100644
--- a/procfs/main.c
+++ b/procfs/main.c
@@ -142,13 +142,13
Hi,
I missed procfs, which has to be told the new kernel pid.
Also, I realize that these changes are a pita to build Debian packages
from. You can grab the packaging bits from
git://darnassus.sceen.net/teythoon/packaging/hurd.git
and binary packages from
deb http://darnassus.sceen.net
Dear maintainer :)
please merge procfs (found in [0]) into the main Hurd repository.
0: git://git.sv.gnu.org/hurd/procfs.git
Rationale:
The procfs translator provides a Linux-compatible /proc filesystem.
While there is no standard that defines the /proc filesystem, a lot of
software depends on
Applied remaining patches, thanks!
Samuel
/changelog
@@ -52,6 +52,7 @@ sysvinit (2.88dsf-42) UNRELEASED; urgency=low
[ Justus Winter ]
* mount-functions.sh: Hurd has a tmpfs translator now, remove workaround.
+ * mount-functions.sh: Add -ocompatible to procfs mounts on Hurd.
-- Roger Leigh Sat, 04 May 2013 13:13:51 +0100
diff
Justus Winter, le Tue 09 Jul 2013 08:22:09 +0200, a écrit :
> Ignore the --nodev, --noexec and --nosuid arguments.
Applied, thanks!
Samuel
Quoting Justus Winter (2013-07-09 08:22:09)
> Ignore the --nodev, --noexec and --nosuid arguments.
>
> * procfs/main.c (argp_parser): Ignore some arguments for compatibility.
> ---
Ping.
Thomas Schwinge, le Tue 09 Jul 2013 15:40:18 +0200, a écrit :
> Is the passive translator setting meant to go away then?
Nope. But concerning Debian, it'll be easier for maintenance of the
"standard" places (/proc, /tmp, etc.) to use active translators started
at root, to avoid differing too much
Hi!
On Tue, 09 Jul 2013 15:00:00 +0200, Justus Winter
<4win...@informatik.uni-hamburg.de> wrote:
> Quoting Pino Toscano (2013-07-09 10:52:56)
> > Alle martedì 9 luglio 2013, Justus Winter ha scritto:
> > > Ignore the --nodev, --noexec and --nosuid arguments.
> >
> > Why nodev? The only consumer
Quoting Pino Toscano (2013-07-09 10:52:56)
> Hi,
>
> Alle martedì 9 luglio 2013, Justus Winter ha scritto:
> > Ignore the --nodev, --noexec and --nosuid arguments.
>
> Why nodev? The only consumer of it seems to be sysvinit, which has been
> patched to not pass nodev also on Hurd (in addition to
Hi,
Alle martedì 9 luglio 2013, Justus Winter ha scritto:
> Ignore the --nodev, --noexec and --nosuid arguments.
Why nodev? The only consumer of it seems to be sysvinit, which has been
patched to not pass nodev also on Hurd (in addition to kFreeBSD) when
mounting /proc.
--
Pino Toscano
sign
/changelog
@@ -52,6 +52,7 @@ sysvinit (2.88dsf-42) UNRELEASED; urgency=low
[ Justus Winter ]
* mount-functions.sh: Hurd has a tmpfs translator now, remove workaround.
+ * mount-functions.sh: Add -ocompatible to procfs mounts on Hurd.
-- Roger Leigh Sat, 04 May 2013 13:13:51 +0100
diff
Ignore the --nodev, --noexec and --nosuid arguments.
* procfs/main.c (argp_parser): Ignore some arguments for compatibility.
---
procfs/main.c | 22 ++
1 file changed, 22 insertions(+)
diff --git a/procfs/main.c b/procfs/main.c
index bcf9590..727fea6 100644
--- a/procfs
lso fix a typo ("the a user") while touching these lines.
> > >
> > > * procfs/main.c (argp_parser): Proper error handling.
> > > (argp_parser): Fix typo.
> >
> > Applied, thanks.
> >
> > Oops, I realize I've forgotten to set --aut
Quoting Samuel Thibault (2013-06-29 22:11:21)
> Justus Winter, le Fri 28 Jun 2013 18:37:40 +0200, a écrit :
> > Do not exit using error (1, ..) but gracefully handle the error using
> > argp_error. Also fix a typo ("the a user") while touching these lines.
> >
&
I have also applied patches 2 and 3. 4, 5 and 6, more involved
author-right-wise, will have to wait for the FSF papers, but they look
OK, I'll upload them in the Debian package.
Samuel
Justus Winter, le Fri 28 Jun 2013 18:37:40 +0200, a écrit :
> Do not exit using error (1, ..) but gracefully handle the error using
> argp_error. Also fix a typo ("the a user") while touching these lines.
>
> * procfs/main.c (argp_parser): Proper error handling.
>
Implement our own netfs_append_args function that provides the
appropriate command line flags if the current values differ from the
default values.
* procfs/main.c (netfs_append_args): New function.
---
procfs/main.c | 42 ++
1 file changed, 42
Define a macro for the default value of each command line
parameter. This allows one to generate a minimal response to
fsys_get_options requests.
* procfs/main.c: New macro definitions for default values.
---
procfs/main.c | 17 -
1 file changed, 12 insertions(+), 5 deletions
Split the argument handling into a common part and one for
fsys_update_options. Handle the --update parameter; for procfs this is
a no-op.
* procfs/main.c (common_options): New variable.
(runtime_argp_parser): Handle --update.
(startup_argp): New variable.
(netfs_runtime_argp_): New variable
Previously if strtol failed the previous configuration value would get
overwritten. Prevent this by storing the result in a temporary
variable and update the configuration if the argument was parsed
correctly and passed the sanity checks.
* procfs/main.c (argp_parser): Keep old configuration in
Make procfs translators handle fsys_set_options requests by pointing
netfs_runtime_argp to our argp struct.
* procfs/main.c (netfs_runtime_argp): New variable.
---
procfs/main.c |3 +++
1 file changed, 3 insertions(+)
diff --git a/procfs/main.c b/procfs/main.c
index 0892d36..1b19c01 100644
Do not exit using error (1, ..) but gracefully handle the error using
argp_error. Also fix a typo ("the a user") while touching these lines.
* procfs/main.c (argp_parser): Proper error handling.
(argp_parser): Fix typo.
---
procfs/main.c | 12 ++--
1 file changed, 6 insert
Hi,
On 27/06/13 14:31, Justus Winter wrote:
> Do not exit using error (1, ..) but gracefully handle the error using
> argp_error.
>
> * procfs/main.c (argp_parser): Proper error handling.
> ---
> procfs/main.c | 12 ++--
> 1 file changed, 6 insertions(+), 6 d
Implement our own netfs_append_args function that provides the
appropriate command line flags if the current values differ from the
default values.
* procfs/main.c (netfs_append_args): New function.
---
procfs/main.c | 42 ++
1 file changed, 42
Define a macro for the default value of each command line
parameter. This allows one to generate a minimal response to
fsys_get_options requests.
* procfs/main.c: New macro definitions for default values.
---
procfs/main.c | 17 -
1 file changed, 12 insertions(+), 5 deletions
Split the argument handling into a common part and one for
fsys_update_options. Handle the --update parameter; for procfs this is
a no-op.
* procfs/main.c (common_options): New variable.
(runtime_argp_parser): Handle --update.
(startup_argp): New variable.
(netfs_runtime_argp_): New variable
Make procfs translators handle fsys_set_options requests by pointing
netfs_runtime_argp to our argp struct.
* procfs/main.c (netfs_runtime_argp): New variable.
---
procfs/main.c |3 +++
1 file changed, 3 insertions(+)
diff --git a/procfs/main.c b/procfs/main.c
index f472f04..6251c83 100644
Previously if strtol failed the previous configuration value would get
overwritten. Prevent this by storing the result in a temporary
variable and update the configuration if the argument was parsed
correctly and passed the sanity checks.
* procfs/main.c (argp_parser): Keep old configuration in
Do not exit using error (1, ..) but gracefully handle the error using
argp_error.
* procfs/main.c (argp_parser): Proper error handling.
---
procfs/main.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/procfs/main.c b/procfs/main.c
index 3a976cc..e7f8574 100644
Hi,
currently procfs doesn't allow one to alter the options at runtime
using fsys_set_options. This is necessary to make mount -oremount
work. I also noticed that fsys_get_options would only return the
translators name, but not its options, so I've implemented this as
well.
FWIW this i
t; Closed
___
Follow-up Comment #1:
This problem has been solved with the switch to the new procfs implementation
by Jeremie Koenig.
___
Reply to this item at:
<http://savannah.gnu.org
Alle giovedì 6 dicembre 2012, Thomas Schwinge ha scritto:
> Hi!
>
> On Thu, 6 Dec 2012 17:57:32 +0100, Pino Toscano
wrote:
> > Initial implementation of statfs reply, just returning the
> > filesystem type and its id.
> >
> > * netfs.c: Include and .
> > (netfs_attempt_statfs): Implement.
>
>
Hi!
On Thu, 6 Dec 2012 17:57:32 +0100, Pino Toscano wrote:
> Initial implementation of statfs reply, just returning the filesystem type
> and its id.
>
> * netfs.c: Include and .
> (netfs_attempt_statfs): Implement.
OK; same is done in ftpfs.
What does this not-totally-anymore-but-still-quit
Hi,
attached there is a small patch for procfs to implement statfs,
returning only the two fields we can fill for sure.
May I push it?
Thanks,
--
Pino Toscano
From 1b7ad5c5d601b6388f0fc871b4fa42d231c05400 Mon Sep 17 00:00:00 2001
From: Pino Toscano
Date: Thu, 6 Dec 2012 17:51:58 +0100
Subject
Cyril Roelandt, le Thu 18 Oct 2012 22:37:34 +0200, a écrit :
> The fix is quite simple:
Applied, thanks!
Samuel
Hello,
The procfs translator fails to build on my Debian GNU/Hurd virtual machine:
gcc -Wall -g -o procfs procfs.o netfs.o procfs_dir.o process.o
proclist.o rootdir.o dircat.o main.o -lnetfs -lps
/usr/bin/ld.bfd.real: netfs.o: undefined reference to symbol 'fshelp_access'
Pino Toscano, le Mon 10 Sep 2012 18:16:44 +0200, a écrit :
> Updated patch attached.
Applied, thanks!
Samuel
Pino Toscano, le Mon 10 Sep 2012 18:16:44 +0200, a écrit :
> Alle lunedì 10 settembre 2012, Samuel Thibault ha scritto:
> > Pino Toscano, le Mon 10 Sep 2012 17:31:32 +0200, a écrit :
> > > Alle domenica 9 settembre 2012, Samuel Thibault ha scritto:
> > > > Pino Toscano, le Fri 07 Sep 2012 20:02:56
i = proc_stat_task_basic_info (ps);
thread_basic_info_t thbi = proc_stat_thread_basic_info (ps);
+ const char *fn = args_filename (proc_stat_args (ps));
/* See proc(5) for more information about the contents of each field for the
Linux procfs. */
return asprintf (contents,
-
Pino Toscano, le Mon 10 Sep 2012 17:31:32 +0200, a écrit :
> Alle domenica 9 settembre 2012, Samuel Thibault ha scritto:
> > Pino Toscano, le Fri 07 Sep 2012 20:02:56 +0200, a écrit :
> > > +static int args_filename_length (const char *name)
> > > +{
> > > + const char *p = name;
> > > + while (*
Alle domenica 9 settembre 2012, Samuel Thibault ha scritto:
> Pino Toscano, le Fri 07 Sep 2012 20:02:56 +0200, a écrit :
> > +static int args_filename_length (const char *name)
> > +{
> > + const char *p = name;
> > + while (*p != '\0' && *p != ' ')
> > +++p;
>
> Why not using index(name, '
Guillem Jover, le Sun 09 Sep 2012 01:22:43 +0200, a écrit :
> On Sun, 2012-09-09 at 00:22:11 +0200, Samuel Thibault wrote:
> > Pino Toscano, le Fri 07 Sep 2012 20:02:56 +0200, a écrit :
> > > +static int args_filename_length (const char *name)
> > > +{
> > > + const char *p = name;
> > > + while
On Sun, 2012-09-09 at 00:22:11 +0200, Samuel Thibault wrote:
> Pino Toscano, le Fri 07 Sep 2012 20:02:56 +0200, a écrit :
> > +static int args_filename_length (const char *name)
> > +{
> > + const char *p = name;
> > + while (*p != '\0' && *p != ' ')
> > +++p;
>
> Why not using index(name, '
Pino Toscano, le Fri 07 Sep 2012 20:02:56 +0200, a écrit :
> +static int args_filename_length (const char *name)
> +{
> + const char *p = name;
> + while (*p != '\0' && *p != ' ')
> +++p;
Why not using index(name, ' ') here?
> + return p - name;
> +}
Samuel
Hi,
attached there is a new patch for procfs to improve again the file name
in stat/status files for PIDs.
Basically, it just considers only the first word in case the process
name has more (e.g. when it changed its own).
Thanks,
--
Pino Toscano
From ebf2b049ea6963026766763df1697467f5806327
1 - 100 of 178 matches
Mail list logo