Re: _maxSize in anaconda filesystem types

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



David Cantrell wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Tue, 19 Jan 2010, Eric Sandeen wrote:
> 

...

>> Anyway if Anaconda wants to be more correct, it'd be something like:
>>
>> _maxSize = min((2^bits_per_long * page_size), fs_max_size)
>>
>> Does that sound doable?
> 
> Sounds reasonable.  There's probably a better way to do this, but here's
> something:
> 
>     import resource
>     import struct
> 
>     bitsPerLong = struct.Struct("l").size * 8
>     fsMaxSize = ???
>     _maxSize = min((2^bitsPerLong * resource.getpagesize()), fsMaxSize)

Only issue here is that I _think_ _maxSize was in kilobytes before, right?
And here you're comparing with bytes.

Anyway if you want to update xfs, the 64-bit-box max is 8E-1 ;)

I don't think we'll support anything over 100T but I don't think it's
Anaconda's job to enforce that.

-Eric

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux