Meta: Cap DISK_SIZE_BYTES max to 2TB#26121
Conversation
In the case if it would somehow been too large. As the 32-bit filesystem is being used.
|
I think the problem is that uutils ignores the |
|
A more proper fix would be to make Though I also think that if uutils is so broken that |
|
But noticed now the I think the issue might be then in the multiplication in line 39 of build-image-qemu.sh, or the INODE calculation, but need to check it later. |
|
Oh I guess uutils doesn't behave correctly if both flags are passed. If I put But if I put it before So for GNU I don't think I can run BSD |
|
BusyBox doesn't support long arguments like BusyBox's |
|
So FreeBSD behaves like BusyBox. macOS probably as well, since it also uses BSD-like command line utils. uutils coreutils seems to be a reimplementation of GNU coreutils specificially, so it should probably take the order of flags into account. So maybe file an issue about this in uutils/coreutils? You could make your previous PR use |
|
This, and #26120 for uutils detection, then the compilation succeeds. |
|
Capping the max disk size to 2 TB is not a good workaround. I would rather make your previous PR use |
|
I know, |
|
|
As uutils coreutils (a Rust GNU coreutils reimplementation)
`du --help` doesn't include any information where it comes from,
but `du -V` does:
```
[starterx4@doadgrz ~]$ du -V
du (uutils coreutils) 0.1.0
```
We have to use it then to detect uutils correctly as
the BSD `-A` argument fails (uutils is not BSD-compatible):
```
error: unexpected argument '-A' found
tip: to pass '-A' as a value, use '-- -A'
Usage: du [OPTION]... [FILE]...
du [OPTION]... --files0-from=F
error: unexpected argument '-A' found
tip: to pass '-A' as a value, use '-- -A'
Usage: du [OPTION]... [FILE]...
du [OPTION]... --files0-from=F
```
Also we have to use `--apparent-size`
due to a bug with `-b` (SerenityOS#26121)
|
Done. |
As uutils coreutils (a Rust GNU coreutils reimplementation)
`du --help` doesn't include any information where it comes from,
but `du -V` does:
```
[starterx4@doadgrz ~]$ du -V
du (uutils coreutils) 0.1.0
```
We have to use it then to detect uutils correctly as
the BSD `-A` argument fails (uutils is not BSD-compatible):
```
error: unexpected argument '-A' found
tip: to pass '-A' as a value, use '-- -A'
Usage: du [OPTION]... [FILE]...
du [OPTION]... --files0-from=F
error: unexpected argument '-A' found
tip: to pass '-A' as a value, use '-- -A'
Usage: du [OPTION]... [FILE]...
du [OPTION]... --files0-from=F
```
Also we have to use `--apparent-size`
due to a bug with `-b` (#26121)

In the case if it would somehow been too large.
I've got this issue during build, either due to building on tmpfs, or due to some uutils coreutils bug, no idea.
But setting a DISK_SIZE_BYTES max fixed the issue.