- default inode size for mke2fs to 128

Inspired by: Wesley Shields
- remove BROKEN; Solaris 8 SPARC64 compiles package just fine

PR:		131556
Submitted by:	Matthias Andree <matthias.andree@gmx.de> (maintainer)
This commit is contained in:
Martin Wilke 2009-02-10 22:36:42 +00:00
parent 6881a44b9f
commit c5f28b7c10
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=228024
3 changed files with 29 additions and 5 deletions

View file

@ -7,7 +7,7 @@
PORTNAME= e2fsprogs
PORTVERSION= 1.41.4
PORTREVISION?= 0
PORTREVISION?= 1
CATEGORIES?= sysutils
MASTER_SITES= ${MASTER_SITE_SOURCEFORGE_EXTENDED}
MASTER_SITE_SUBDIR= ${PORTNAME}
@ -58,10 +58,6 @@ PLIST_SUB= NLS=""
libintl= "${LOCALBASE}/lib/libintl.a ${LOCALBASE}/lib/libiconv.a"
.endif
.if ${ARCH} == "sparc64"
BROKEN= Does not compile on sparc64
.endif
post-patch::
@${REINPLACE_CMD} -E -e \
's:\$$\(libdir\)/pkgconfig:${PREFIX}/libdata/pkgconfig:' \
@ -107,6 +103,9 @@ post-build:
@${ECHO_CMD} '===> Running e2fsprogs self-test suite'
cd ${WRKSRC}/tests && ${GMAKE} check \
|| { head -n30000 ${WRKSRC}/tests/*.failed 2>/dev/null ; exit 1 ; }
# Now patch mke2fs.conf to default to 128 byte inodes - we need to do this
# after self tests since they assume 256 byte inodes.
${PATCH} -N -d ${WRKSRC} <${FILESDIR}/diff-inode_size
post-install:
${INSTALL_PROGRAM} ${WRKSRC}/fsck_ext2fs ${PREFIX}/sbin/

View file

@ -0,0 +1,14 @@
# do not call this patch-* - we need to apply this after running self-tests!
# -- Matthias Andree, 2009-02-10
--- ./misc/mke2fs.conf.orig 2009-02-10 18:32:45.000000000 +0900
+++ ./misc/mke2fs.conf 2009-02-10 18:32:52.000000000 +0900
@@ -1,7 +1,7 @@
[defaults]
base_features = sparse_super,filetype,resize_inode,dir_index,ext_attr
blocksize = 4096
- inode_size = 256
+ inode_size = 128
inode_ratio = 16384
[fs_types]

View file

@ -1,4 +1,15 @@
===========================================================================
Note: FreeBSD's ext2fs module, as of release 7.1, cannot mount ext2 file
systems with 256-byte large inodes, only 128 byte sized. Unfortunately,
256 byte is the default size with many recent Linux distributions.
The inode size cannot be changed after creation of a file system either.
This port overrides the default to 128 bytes, but this only applies to ext2
file systems created with this particular mke2fs. If you format ext2 file
systems with other operating systems, make sure that mke2fs is called with
"-I 128" for partitions that you plan to share with FreeBSD.
Remember to backup your data before re-formatting any existing file
systems!
---------------------------------------------------------------------------
Note: this is a modified version of the e2fsprogs package, not the official
package. Report all building and run-time trouble that originates in the
package to the port maintainer, <matthias.andree@gmx.de>.