NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: port-sparc64/56363: boot: Inode not directory
The following reply was made to PR port-sparc64/56363; it has been noted by GNATS.
From: David Brownlee <abs%absd.org@localhost>
To: Martin Husemann <martin%duskware.de@localhost>
Cc: gnats-bugs%netbsd.org@localhost
Subject: Re: port-sparc64/56363: boot: Inode not directory
Date: Thu, 19 Aug 2021 15:16:04 +0100
On Thu, 19 Aug 2021 at 14:56, Martin Husemann <martin%duskware.de@localhost> wrote:
>
> On Thu, Aug 19, 2021 at 01:53:26PM +0100, David Brownlee wrote:
> > Is there any way to ensure that the blocks loaded from /ofwboot are at
> > the end of a partition for testing purposes? Maybe have a some code
> > create repeated copies of ofwboot until it finds one with a block over
> > a required limit, then remove the others and use that one?
>
> I am not sure I understand your idea - I don't think there is any
> non-destructive way to probe for this kind of limits.
I was thinking of a brute force approach where it just kept creating
copies (and using up disk space), until it found one where at least
one block was above a specified limit (or potentially all blocks below
a limit), at which point all files except that one could be deleted.
The code to check which blocks are in use for each file should be
already available in installboot :)
It would not be intended for this to be default behaviour, but would
probably make sense to build in
- work in a temporary subdirectory so easier to cleanup
- add optional max number of copies to try before aborting
- add min free space in filesystem before aborting
David
Home |
Main Index |
Thread Index |
Old Index