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

Teach fsck about sockets #660

Open
EtchedPixels opened this issue Sep 7, 2018 · 4 comments
Open

Teach fsck about sockets #660

EtchedPixels opened this issue Sep 7, 2018 · 4 comments
Labels

Comments

@EtchedPixels
Copy link
Owner

We can get stale socket inodes and right now we clean them up fine but report them as not the correct type and ask the user to Zap them

@protoCall7
Copy link

@EtchedPixels I came across this issue while looking for a simple bug to get started with FUZIX development on. I believe I have a fix for this issue, but I was wondering if you knew of a good way to generate a stale socket inode so that I can test my changes before submitting a pull request?

@EtchedPixels
Copy link
Owner Author

I think the simplest way may be to use mknod as root to create fake ones

        mknod("/tmp/asocket", 0140700, 0);
        unlink("/tmp/asocket");
        uadmin(A_REBOOT, 0, 0);

or maybe even just hack ucp so you can add some ?

@protoCall7
Copy link

protoCall7 commented Oct 14, 2019

Thanks for the input, @EtchedPixels, the snippet above seems to do the trick!

On a related note, when booting with an improperly unmounted disk, is there a way to get a single-user mode, or another method of doing something similar to yes | fsck -a so that I don't have to spend as much time hitting "y" in order to test my changes?

@EtchedPixels
Copy link
Owner Author

You can change the /etc/rc scripts for one

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

No branches or pull requests

2 participants