Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

help support reinstated #101

Open
wants to merge 13 commits into
base: master
Choose a base branch
from
Open

help support reinstated #101

wants to merge 13 commits into from

Conversation

PeteGozz
Copy link

modified:   libvdev/config.c
modified:   libvdev/config.h
modified:   vdevd/main.c
modified:   vdevd/vdev.c

patches to (re)instate --help for the vdevd daemon.
should now exit early when -h or --help
is supplied on the command line.

hopefully I have understood the project style
and intent of various code structures.
currently the exit code is 2
That value is pure opinion on my part
and possibly accidental as that's what I tend to use in scripts.

make clean
make

test and compare with
build/sbin/vdevd -l mylogfile.log -h
echo $? =hopefully returns=> 6
build/sbin/vdevd --help
echo $? =hopefully returns=> 2

which may be a little helpful

There are structures and defs for future work
I followed the existing code base as closely as I could.

Apologies
As a bonus my .gitignore has been included .
this may or may not cause hurt.
I will attempt to tame my git.

	modified:   libvdev/config.c
	modified:   libvdev/config.h
	modified:   vdevd/main.c
	modified:   vdevd/vdev.c
patches to (re)instate --help for the vdevd daemon.
should now exit early when -h or --help
is supplied on the command line.

hopefully I have understood the project style
and intent of various code structures.
currently the  exit code is 2

make clean
make

test and compare with
build/sbin/vdevd -l mylogfile.log  -h
echo $?  =returns=> 6
build/sbin/vdevd   --help
echo $?  =returns=> 2

which may be a little helpful

There are structures and defs for future work
	set CFLAGS to more recent C version and increase error reporting
	originals simply commented out ready for production uses.
Some small tweaks for clarity and consistancy with init time errors.
	No major alterations
	diff maybe becuase of testing.
	modified:   libvdev/config.c
	modified:   libvdev/ini.c
	modified:   libvdev/ini.h
	modified:   libvdev/param.h
	modified:   libvdev/sglib.h
	modified:   libvdev/util.h
	modified:   vdevd/action.c
	modified:   vdevd/vdev.c
	modified:   vdevd/vdev.h

Mostly just compiler warning fixits.
  - attempts to understand some macros and defs.
  - attempts to understand initramfs inplications.
  - No functionality alters at all.
@PeteGozz
Copy link
Author

These were the result of some explorations and testing I did.
Adding these to the "mothball"

no more than a style tidy up.
 also some hand tweaks
 all cosmetics only
just for the blast
Moving everything to GNU style
As a "middle path"...
Its probaly appropriate to move LINUX specific  code to -linux style...
Not a huge issue for me.
capturing a snapshot for dev and emergency uses
This version has been slightly extended to warn about
possible accidental creations.
Some tidy ups and gentle extensions
Most important change is to ensure i386 build of initramfs
(libc naming conventions ?)
@mckaygerhard
Copy link

hi why this pull request was not merged?

@RossComputerGuy
Copy link

I'm wondering the same thing

Copy link

@mckaygerhard mckaygerhard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 to make it work in my older systems

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants