Closed rexagod closed 1 month ago
Rebased. Ready for reviews.
I think we should just implement the ptr function ourselves, it's just this:
// To returns a pointer to the given value.
func To[T any](v T) *T {
return &v
}
Initially, I did have doubts around changing the public signature, even though we don't guarantee any backward compatibilities, but I decided to go forward with the patch anyway since that was the only way of addressing the issue (there was the possibility of adding readLimit
to FS
, but that made little sense as it wasn't at all cohesive).
Seeing that we use netlink
as a replacement for this, I'm fine with closing out this PR and adding a deprecation notice. Thank you for all the details.
Defaults to 4GiB otherwise, as earlier.
Fixes: #364