Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33bfc21
)
b=22906 limit filesystem size for LUN size close to 16TB
author
Mikhail Pershin
<tappro@sun.com>
Thu, 19 Aug 2010 16:36:07 +0000
(20:36 +0400)
committer
Mikhail Pershin
<tappro@sun.com>
Thu, 19 Aug 2010 16:36:07 +0000
(20:36 +0400)
a=adilger
i=zhiqi.tao
i=girish.shilamkar
lustre/utils/mkfs_lustre.c
patch
|
blob
|
history
diff --git
a/lustre/utils/mkfs_lustre.c
b/lustre/utils/mkfs_lustre.c
index
28c3806
..
bcdfc29
100644
(file)
--- a/
lustre/utils/mkfs_lustre.c
+++ b/
lustre/utils/mkfs_lustre.c
@@
-587,6
+587,11
@@
int make_lustre_backfs(struct mkfs_opts *mop)
return EINVAL;
}
block_count = mop->mo_device_sz / (L_BLOCK_SIZE >> 10);
+ /* If the LUN size is just over 2^32 blocks, limit the
+ * filesystem size to 2^32-1 blocks to avoid problems with
+ * ldiskfs/mkfs not handling this size. Bug 22906 */
+ if (block_count > 0xffffffffULL && block_count < 0x100002000ULL)
+ block_count = 0xffffffffULL;
}
if ((mop->mo_ldd.ldd_mount_type == LDD_MT_EXT3) ||