On Fri, Apr 25, 2025 at 05:21:46PM +0200, g2p code wrote:
> On Fri, Apr 25, 2025 at 4:38 PM Kent Overstreet <kent.overstr...@linux.dev>
> wrote:
> 
> > On Fri, Apr 25, 2025 at 04:15:18PM +0200, Gabriel de Perthuis wrote:
> > >
> > > Pretty printing of sizes could introduce spaces and break
> > > the expected space-separated format.
> >
> > we shoudldn't be including spaces when we print human readable numbers,
> > that's the bug...
> 
> 
> I did a quick check, human-readable sizes from prt_human_readable_u64 also
> lose some precision.
> That's fine for dmesg and other reporting, but there need to be easy and
> obvious
> way to get the values back losslessly, I don't think /proc/mounts and
> /sys/fs/bcachefs/*/options/
> should modify them.

Who's parsing /proc/mounts for the option values, though? That's
primarily for human consumption, we have better ways of getting at
that...

Reply via email to