Re: Why is tmpfs not working on OpenBSD?

2021-09-09 Thread Chris Bennett
On Mon, Sep 06, 2021 at 12:44:59AM +, iio7 wrote:
> > > Why isn't it removed? It is kinda "misguiding".
> >
> > Shucks, you must feel terrible about our decision.
> 
> Well, compared to the fact that you, back in 2016, wrote that,
> "We don't spend hours of our time adding unimportant notes to that file.", 
> concerning updating the FAQ about this, maybe
> instead of giving these useless comments, that you apparently
> have got plenty of time to do, you should actually provide some
> kind of useful information somewhere!
> 

Wow. I guess a 2500 page FAQ would be much better.

But, I do believe I have found an important issue to add to the porting
section of the FAQ.
Although it covers submitting a single port, it does not cover how to
deal with submitting a larger project with 20+ submissions.

I learned the hard way that the methods I was using to submit ports for
a larger project just didn't work for getting these looked at and getting
the two OK's needed for new ports. Oops.

However, bit by bit, I was kindly informed on how to do that correctly.
I intend to work out a diff to add that to the porting section of the
FAQ. Perhaps it will be accepted, but at least it will bring the topic
into a single, searchable thread.

For the moment, due to financial reasons, I cannot continue that
project. Hopefully, others will at least find some value from my
experience with that project. I would like to see others motivated to
doing medium sized projects with less confusion. Reviewers too.

As far as to leaving certain unmaintained src and broken ports in the
tree, I have no problem with that. Many broken ports eventually get
fixed. We all benefit from that.

Chris Bennett



Re: Recover partition table/FFS2 after overwrite?

2021-09-09 Thread Thomas Windisch
On Thu, Sep 09, 2021 at 12:07:04PM +0200, Jan Stary wrote:
> On Sep 08 16:31:36, thomaswindi...@thomaswindisch.net wrote:
> > I mangaged to restore my drive using 
> > 
> > #fdisk -iy
> > #disklabel -R
> > #fsck
> > 
> > Thanks Geoff and David.
> > 
> > After reinstalling OpenBSD everything seems so be running fine.
> 
> If you reinstalled anyway, why did you bother restoring?
> 

I copied what I needed from /var and /usr to /home and only kept /home
on the new install (by not setting a mount point for /home and latter
adding it manually).

> > Almost.
> > 
> > When I now run grep I get this:
> > 
> > $ grep
> > warning: libc.so.96.0: minor version >= 1 expected, using it anyway
> > ld.so: grep: can't load library 'libz.so.6.0'
> > Killed
> > 
> > I was previously running -current and I reinstalled -release 6.9.
> > It seems that grep is a remnant of the old install? How come?
> > 
> > 

On Wed, Sep 08, 2021 at 10:15:30PM -, Stuart Henderson wrote:
> On 2021-09-08, Thomas Windisch  wrote:
> > I mangaged to restore my drive using
> >
> > #fdisk -iy
> > #disklabel -R
> > #fsck
> >
> > Thanks Geoff and David.
> >
> > After reinstalling OpenBSD everything seems so be running fine.
> > Almost.
> >
> > When I now run grep I get this:
> >
> > $ grep
> > warning: libc.so.96.0: minor version >= 1 expected, using it anyway
> > ld.so: grep: can't load library 'libz.so.6.0'
> > Killed
> >
> > I was previously running -current and I reinstalled -release 6.9.
> > It seems that grep is a remnant of the old install? How come?
>
> If you "downgrade" you will need to clean up newer libraries,
> things from packages, sometimes perl modules, etc. It is for this reason
> that this is really not a supported thing to do.

I did not downgrade via the "Upgrade" option but via the "Install"
option. The installer running newfs should cleared all data in /usr, /var, 
and /, right?

After rebooting I now cannot boot. The error I now get is:

Abort trap



>
> --
> Please keep replies on the mailing list.
>


I guess I'll just backup /home to another drive and do clean reinstall.



For those who are not aware how mutex work in mp world like me

2021-09-09 Thread Sven F.
This seems a good source with the ref to LOCK in x86 ( which is support to
make any
instruction atomic across cores :o )

http://www.moserware.com/2008/09/how-do-locks-lock.html

If someone with knowledge can confirm it is decent reading.
( apparently other cpu use other stuff.. i wonder how it is done on ARM )

Kudos to all working on this very difficult matter

-- 
--
-
Knowing is not enough; we must apply. Willing is not enough; we must do


Re: Recover partition table/FFS2 after overwrite?

2021-09-09 Thread Jan Stary
On Sep 08 16:31:36, thomaswindi...@thomaswindisch.net wrote:
> I mangaged to restore my drive using 
> 
> #fdisk -iy
> #disklabel -R
> #fsck
> 
> Thanks Geoff and David.
> 
> After reinstalling OpenBSD everything seems so be running fine.

If you reinstalled anyway, why did you bother restoring?

> Almost.
> 
> When I now run grep I get this:
> 
> $ grep
> warning: libc.so.96.0: minor version >= 1 expected, using it anyway
> ld.so: grep: can't load library 'libz.so.6.0'
> Killed
> 
> I was previously running -current and I reinstalled -release 6.9.
> It seems that grep is a remnant of the old install? How come?
> 
>