sysfsutils, aka systool, candidate for inclusion in util-linux-ng
Hi,
Description: utilities for interfacing with sysfs.
Background: unmaintained since ten years, included in
enterprise distributions and widely used with plenty of
downloads: https://sourceforge.net/projects/linux-diag/files/sysfsutils/stats/timeline?dates=2003-07-01++to+2017-03-17
$HOME: https://linux-diag.sf.net/Sysfsutils.html
Source code: https://sf.net/projects/linux-diag/files/sysfsutils/
Thank you.
Quoted 9 lines · Xose Vazquez Perez
Description: utilities for interfacing with sysfs.
Background: unmaintained since ten years, included in
enterprise distributions and widely used with plenty of
downloads: https://sourceforge.net/projects/linux-diag/files/sysfsutils/stats/timeline?dates=2003-07-01++to+2017-03-17$HOME: https://linux-diag.sf.net/Sysfsutils.html
Source code: https://sf.net/projects/linux-diag/files/sysfsutils/
Good proposal, and after quick test to migrate sysfsutils to util-linux this seems
do-able. But before proceeding any further I want to hear from Karel and old sysfsutils maintainer if the project merge what is wanted.
git://github.com/kerolasa/lelux-utiliteetit.git sysfsutils
If yes next steps:
1. polish libsysfs, add for example .sym file
2. polish systool, add translations, and other standard util-linux conventions, such as atexit hook, xmalloc usage, and so on
3. figure out what should be done with dlist_test, get_device, get_driver, and get_module
4. add tests, and make _PART_SYS_SYSTEM stuff work
5. without a doubt something other as well
6. send a pull month or two later
Signature · 2 lines
Sami Kerola http://www.iki.fi/kerolasa/
Quoted 21 lines · Sami Kerola
Quoted 10 lines · Xose Vazquez Perez
Description: utilities for interfacing with sysfs.
Background: unmaintained since ten years, included in
enterprise distributions and widely used with plenty of
downloads: https://sourceforge.net/projects/linux-diag/files/sysfsutils/stats/timeline?dates=2003-07-01++to+2017-03-17$HOME: https://linux-diag.sf.net/Sysfsutils.html <--- HTTPS broken!! $HOME: http://linux-diag.sf.net/Sysfsutils.html
Source code: https://sf.net/projects/linux-diag/files/sysfsutils/Good proposal, and after quick test to migrate sysfsutils to util-linux this seems
do-able. But before proceeding any further I want to hear from Karel and old sysfsutils maintainer if the project merge what is wanted.
git://github.com/kerolasa/lelux-utiliteetit.gitsysfsutilsIf yes next steps:
Quoted 8 lines
1. polish libsysfs, add for example .sym file
2. polish systool, add translations, and other standard util-linux conventions, such as atexit hook, xmalloc usage, and so on
3. figure out what should be done withdlist_test,get_device,get_driver, andget_module
4. add tests, and make_PART_SYS_SYSTEMstuff work
5. without a doubt something other as well
6. send a pull month or two later
Cced the rest of the sysfsutils crew.
Thank you for contacting me even though I haven't worked with sysfsutils for a very long time. I'm honestly a little surprised it is still used.
I think the proposal is good. Please let me know if you need my assistance with anything.
On Sat, Mar 18, 2017 at 12:58 PM, Xose Vazquez Perez <[email protected]
Quoted 39 lines
wrote:
Quoted 1 line · Sami Kerola
On 17 March 2017 at 17:47, Xose Vazquez Perez <[email protected]>
Quoted 5 lines · wrote:
Quoted 5 lines
Description: utilities for interfacing with sysfs.
Background: unmaintained since ten years, included in enterprise distributions and widely used with plenty of
downloads: https://sourceforge.net/projects/linux-diag/files/sysfsutils/stats/timeline?dates=2003-07-01++to+2017-03-17
Quoted 9 lines
Quoted 5 lines
$HOME: https://linux-diag.sf.net/Sysfsutils.html <--- HTTPS broken!! $HOME: http://linux-diag.sf.net/Sysfsutils.html
Source code: https://sf.net/projects/linux-diag/files/sysfsutils/Good proposal, and after quick test to migrate sysfsutils to util-linux this seems
do-able. But before proceeding any further I want to hear from Karel andold
Quoted 6 lines
sysfsutils maintainer if the project merge what is wanted.
git://github.com/kerolasa/lelux-utiliteetit.gitsysfsutilsIf yes next steps:
Quoted 8 lines
1. polish libsysfs, add for example .sym file
2. polish systool, add translations, and other standard util-linux conventions, such as atexit hook, xmalloc usage, and so on
3. figure out what should be done withdlist_test,get_device,get_driver, andget_module
4. add tests, and make_PART_SYS_SYSTEMstuff work
5. without a doubt something other as well
6. send a pull month or two laterCced the rest of the sysfsutils crew.
Quoted 32 lines · Xose Vazquez Perez
Quoted 21 lines · Sami Kerola
Quoted 10 lines · Xose Vazquez Perez
Description: utilities for interfacing with sysfs.
Background: unmaintained since ten years, included in
enterprise distributions and widely used with plenty of
downloads: https://sourceforge.net/projects/linux-diag/files/sysfsutils/stats/timeline?dates=2003-07-01++to+2017-03-17$HOME: https://linux-diag.sf.net/Sysfsutils.html <--- HTTPS broken!! $HOME: http://linux-diag.sf.net/Sysfsutils.html
Source code: https://sf.net/projects/linux-diag/files/sysfsutils/Good proposal, and after quick test to migrate sysfsutils to util-linux this seems
do-able. But before proceeding any further I want to hear from Karel and old sysfsutils maintainer if the project merge what is wanted.
git://github.com/kerolasa/lelux-utiliteetit.gitsysfsutilsIf yes next steps:
Quoted 8 lines
1. polish libsysfs, add for example .sym file
2. polish systool, add translations, and other standard util-linux conventions, such as atexit hook, xmalloc usage, and so on
3. figure out what should be done withdlist_test,get_device,get_driver, andget_module
4. add tests, and make_PART_SYS_SYSTEMstuff work
5. without a doubt something other as well
6. send a pull month or two later
Quoted 1 line
Cced the rest of the sysfsutils crew.
While I wrote large parts of the code about 13/14 years ago, I haven't worked on it for over a decade. If it is being used as is, that's good to know. Let me know if anything specific is needed from my end.
Regards,
Ananth
Karel Zak
maintainerQuoted 8 lines · Sami Kerola
Quoted 7 lines · Xose Vazquez Perez
Description: utilities for interfacing with sysfs.
Background: unmaintained since ten years, included in
enterprise distributions and widely used with plenty of
downloads: https://sourceforge.net/projects/linux-diag/files/sysfsutils/stats/timeline?dates=2003-07-01++to+2017-03-17
Quoted 7 lines
Quoted 2 lines
$HOME: https://linux-diag.sf.net/Sysfsutils.html
Source code: https://sf.net/projects/linux-diag/files/sysfsutils/Good proposal, and after quick test to migrate sysfsutils to util-linux this seems
do-able. But before proceeding any further I want to hear from Karel and old sysfsutils maintainer if the project merge what is wanted.
The question is if maintain it again is the right reaction to the current agony. Maybe death is better solution.
I don't think it's widely used and IMHO it's probably used for trivial things like write/read from sysfs.
For example we have for work with /sys/block a file lib/sysfs.c in utils-linux. Not sure if for something like this is necessary to have shared library.
Karel
Signature · 2 lines
Karel Zak <[email protected]> http://karelzak.blogspot.com
Quoted 9 lines · Karel Zak
The question is if maintain it again is the right reaction to the current agony. Maybe death is better solution.
I don't think it's widely used and IMHO it's probably used for trivial things like write/read from sysfs.
For example we have for work with
/sys/blocka filelib/sysfs.cin utils-linux. Not sure if for something like this is necessary to have shared library.
I did a little bit more research what sysfsutils provides and who are using it. 'Do not use libsysfs' in kernel documentation[1] is pretty convincing hint this library should be left to be in state it is. Secondly the list of projects I was able to find[2] had either migrated away from the libsysfs or died.
I was able to find one exception, iputils arping command. I sent change to iputils maintainer that will remove libsysfs stuff moment ago, so lets hope that will be sorted in future release.
TL;DR. not including sysfsutils to util-linux is the right thing.
[1] https://raw.githubusercontent.com/torvalds/linux/master/Documentation/admin-guide/sysfs-rules.rst
[2] https://www.archlinux.org/packages/core/i686/sysfsutils/
Signature · 2 lines
Sami Kerola http://www.iki.fi/kerolasa/