Linux Archive

Linux Archive (http://www.linux-archive.org/)
-   Debian Kernel (http://www.linux-archive.org/debian-kernel/)
-   -   Update the fs size limit for ext3/ext4 from 8TB to 16TB. (http://www.linux-archive.org/debian-kernel/638291-update-fs-size-limit-ext3-ext4-8tb-16tb.html)

David Lehman 02-27-2012 09:37 PM

Update the fs size limit for ext3/ext4 from 8TB to 16TB.
 
This depends only on the block size, which can only be overridden
by someone selecting an fsprofile with a smaller block size.

Related: rhbz#767727
---
pyanaconda/storage/formats/fs.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/pyanaconda/storage/formats/fs.py b/pyanaconda/storage/formats/fs.py
index 591187a..f2ed935 100644
--- a/pyanaconda/storage/formats/fs.py
+++ b/pyanaconda/storage/formats/fs.py
@@ -1060,6 +1060,12 @@ class Ext3FS(Ext2FS):
_defaultMigrateOptions = ["-O", "extents"]
partedSystem = fileSystemType["ext3"]

+ # It is possible for a user to specify an fsprofile that defines a blocksize
+ # smaller than the default of 4096 bytes and therefore to make liars of us
+ # with regard to this maximum filesystem size, but if they're doing such
+ # things they should know the implications of their chosen block size.
+ _maxSize = 16 * 1024 * 1024
+
register_device_format(Ext3FS)


--
1.7.7.6

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

David Lehman 02-27-2012 09:44 PM

Update the fs size limit for ext3/ext4 from 8TB to 16TB.
 
This depends only on the block size, which can only be overridden
by someone selecting an fsprofile with a smaller block size.

(cherry picked from commit cda63ee8b3632bead73db1af8f40e23fc6274dee)

Resolves: rhbz#767727
---
storage/formats/fs.py | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/storage/formats/fs.py b/storage/formats/fs.py
index cf72735..d4f60ff 100644
--- a/storage/formats/fs.py
+++ b/storage/formats/fs.py
@@ -1048,6 +1048,12 @@ class Ext3FS(Ext2FS):
_defaultMigrateOptions = ["-O", "extents"]
partedSystem = fileSystemType["ext3"]

+ # It is possible for a user to specify an fsprofile that defines a blocksize
+ # smaller than the default of 4096 bytes and therefore to make liars of us
+ # with regard to this maximum filesystem size, but if they're doing such
+ # things they should know the implications of their chosen block size.
+ _maxSize = 16 * 1024 * 1024
+
register_device_format(Ext3FS)


--
1.7.7.6

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


All times are GMT. The time now is 06:27 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.