google / fscrypt

Go tool for managing Linux filesystem encryption
Apache License 2.0
886 stars 99 forks source link

Fix Parallelism Cost when NumCPU() > 255 #365

Closed josephlr closed 1 year ago

josephlr commented 2 years ago

As pointed out in #363, we are not currently handling cases with 256 or more CPUs correctly. Our current behavior:

This PR does multiple things (see the commits for more detailed information):

ebiggers commented 2 years ago

Thanks for doing this! Two comments: