* [Buildroot] [PATCH 1/9] ext2: add help text for BR2_TARGET_ROOTFS_EXT2_BLOCKS
2017-05-01 15:58 [Buildroot] [PATCH 0/9] fs/ext2: cleanups and improvements Yann E. MORIN
@ 2017-05-01 15:58 ` Yann E. MORIN
2017-05-04 15:15 ` Thomas Petazzoni
2017-05-01 15:58 ` [Buildroot] [PATCH 2/9] package/mke2img: check nb_blocks is specified Yann E. MORIN
` (8 subsequent siblings)
9 siblings, 1 reply; 14+ messages in thread
From: Yann E. MORIN @ 2017-05-01 15:58 UTC (permalink / raw)
To: buildroot
From: J Evans <g4@novadsp.com>
Signed-off-by: J Evans <g4@novadsp.com>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
---
fs/ext2/Config.in | 2 ++
1 file changed, 2 insertions(+)
diff --git a/fs/ext2/Config.in b/fs/ext2/Config.in
index 19ed140c88..a1e3647a14 100644
--- a/fs/ext2/Config.in
+++ b/fs/ext2/Config.in
@@ -48,6 +48,8 @@ config BR2_TARGET_ROOTFS_EXT2_LABEL
config BR2_TARGET_ROOTFS_EXT2_BLOCKS
int "exact size in blocks"
default 61440
+ help
+ Specify the file system size as a number of 1024-byte blocks.
config BR2_TARGET_ROOTFS_EXT2_INODES
int "exact number of inodes (leave at 0 for auto calculation)"
--
2.11.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 2/9] package/mke2img: check nb_blocks is specified
2017-05-01 15:58 [Buildroot] [PATCH 0/9] fs/ext2: cleanups and improvements Yann E. MORIN
2017-05-01 15:58 ` [Buildroot] [PATCH 1/9] ext2: add help text for BR2_TARGET_ROOTFS_EXT2_BLOCKS Yann E. MORIN
@ 2017-05-01 15:58 ` Yann E. MORIN
2017-05-13 13:17 ` Thomas Petazzoni
2017-05-01 15:58 ` [Buildroot] [PATCH 3/9] package/mke2img: specifying zero inodes means auto Yann E. MORIN
` (7 subsequent siblings)
9 siblings, 1 reply; 14+ messages in thread
From: Yann E. MORIN @ 2017-05-01 15:58 UTC (permalink / raw)
To: buildroot
Since we do not have autocalculation anymore, the user must specify the
exact number of blocks.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
package/mke2img/mke2img | 3 +++
1 file changed, 3 insertions(+)
diff --git a/package/mke2img/mke2img b/package/mke2img/mke2img
index b773aa99db..758b6dee68 100755
--- a/package/mke2img/mke2img
+++ b/package/mke2img/mke2img
@@ -44,6 +44,9 @@ main() {
if [ -z "${image}" ]; then
error "you must specify an output image file with '-o'\n"
fi
+ if [ -z "${nb_blocks}" ]; then
+ error "you must specify the size of the output image with '-b'\n"
+ fi
case "${gen}:${rev}" in
2:0|2:1|3:1|4:1)
;;
--
2.11.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 3/9] package/mke2img: specifying zero inodes means auto
2017-05-01 15:58 [Buildroot] [PATCH 0/9] fs/ext2: cleanups and improvements Yann E. MORIN
2017-05-01 15:58 ` [Buildroot] [PATCH 1/9] ext2: add help text for BR2_TARGET_ROOTFS_EXT2_BLOCKS Yann E. MORIN
2017-05-01 15:58 ` [Buildroot] [PATCH 2/9] package/mke2img: check nb_blocks is specified Yann E. MORIN
@ 2017-05-01 15:58 ` Yann E. MORIN
2017-05-01 15:58 ` [Buildroot] [PATCH 4/9] fs/ext2: always pass the number of inodes Yann E. MORIN
` (6 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: Yann E. MORIN @ 2017-05-01 15:58 UTC (permalink / raw)
To: buildroot
Currently, leaving the number of inodes to be autocalculated requires
the user to not specify the -i option at all.
Also accept zero as meaning auto; this will help simplify the ext2.mk
code a little bit.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
package/mke2img/mke2img | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/mke2img/mke2img b/package/mke2img/mke2img
index 758b6dee68..266df483aa 100755
--- a/package/mke2img/mke2img
+++ b/package/mke2img/mke2img
@@ -59,7 +59,7 @@ main() {
esac
# calculate needed inodes
- if [ -z "${nb_inodes}" ]; then
+ if [ ${nb_inodes:-0} -eq 0 ]; then
nb_inodes=$(find "${root_dir}" | wc -l)
nb_inodes=$((nb_inodes+400))
fi
--
2.11.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 0/9] fs/ext2: cleanups and improvements
@ 2017-05-01 15:58 Yann E. MORIN
2017-05-01 15:58 ` [Buildroot] [PATCH 1/9] ext2: add help text for BR2_TARGET_ROOTFS_EXT2_BLOCKS Yann E. MORIN
` (9 more replies)
0 siblings, 10 replies; 14+ messages in thread
From: Yann E. MORIN @ 2017-05-01 15:58 UTC (permalink / raw)
To: buildroot
Hello All!
This series brings in some cleanups about our ext2 filesystem handling,
and a few enhancements, of which the ability to reserve 0 block for root,
and set the block size.
Regards,
Yann E. MORIN.
The following changes since commit 5f14d0363248e8de253b7611e66b67eba45ce959
package/m*/Config.in: fix ordering of statements (2017-05-01 11:56:18 +0200)
are available in the git repository at:
git://git.buildroot.org/~ymorin/git/buildroot.git
for you to fetch changes up to c85507a4104956f6597a910e729118309f3ff432
fs/ext2: add option to specify block size (2017-05-01 17:31:44 +0200)
----------------------------------------------------------------
J Evans (1):
ext2: add help text for BR2_TARGET_ROOTFS_EXT2_BLOCKS
Yann E. MORIN (8):
package/mke2img: check nb_blocks is specified
package/mke2img: specifying zero inodes means auto
fs/ext2: always pass the number of inodes
fs/ext2: always pass the label option
fs/ext2: allow reserving zero block for root
fs/ext2: simplify code
package/mke2img: add option to specify block size
fs/ext2: add option to specify block size
fs/ext2/Config.in | 35 +++++++++++++++++++++++++++++++++--
fs/ext2/ext2.mk | 27 +++++++++++----------------
package/mke2img/mke2img | 15 ++++++++++++---
3 files changed, 56 insertions(+), 21 deletions(-)
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 4/9] fs/ext2: always pass the number of inodes
2017-05-01 15:58 [Buildroot] [PATCH 0/9] fs/ext2: cleanups and improvements Yann E. MORIN
` (2 preceding siblings ...)
2017-05-01 15:58 ` [Buildroot] [PATCH 3/9] package/mke2img: specifying zero inodes means auto Yann E. MORIN
@ 2017-05-01 15:58 ` Yann E. MORIN
2017-05-01 15:58 ` [Buildroot] [PATCH 5/9] fs/ext2: always pass the label option Yann E. MORIN
` (5 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: Yann E. MORIN @ 2017-05-01 15:58 UTC (permalink / raw)
To: buildroot
... since zero also means auto for the mke2img script, now.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
fs/ext2/ext2.mk | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/fs/ext2/ext2.mk b/fs/ext2/ext2.mk
index 9d3e8fd666..3fc12d7499 100644
--- a/fs/ext2/ext2.mk
+++ b/fs/ext2/ext2.mk
@@ -8,9 +8,8 @@ EXT2_OPTS = -G $(BR2_TARGET_ROOTFS_EXT2_GEN) -R $(BR2_TARGET_ROOTFS_EXT2_REV)
EXT2_OPTS += -b $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)
-ifneq ($(strip $(BR2_TARGET_ROOTFS_EXT2_INODES)),0)
EXT2_OPTS += -i $(BR2_TARGET_ROOTFS_EXT2_INODES)
-endif
+
EXT2_OPTS += -I $(BR2_TARGET_ROOTFS_EXT2_EXTRA_INODES)
ifneq ($(strip $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)),0)
--
2.11.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 5/9] fs/ext2: always pass the label option
2017-05-01 15:58 [Buildroot] [PATCH 0/9] fs/ext2: cleanups and improvements Yann E. MORIN
` (3 preceding siblings ...)
2017-05-01 15:58 ` [Buildroot] [PATCH 4/9] fs/ext2: always pass the number of inodes Yann E. MORIN
@ 2017-05-01 15:58 ` Yann E. MORIN
2017-05-01 15:58 ` [Buildroot] [PATCH 6/9] fs/ext2: allow reserving zero block for root Yann E. MORIN
` (4 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: Yann E. MORIN @ 2017-05-01 15:58 UTC (permalink / raw)
To: buildroot
... since passing an empty string is equivalent to not setting a label.
And fix the syntax highlighting in some editors...
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
fs/ext2/ext2.mk | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/fs/ext2/ext2.mk b/fs/ext2/ext2.mk
index 3fc12d7499..6a35b33117 100644
--- a/fs/ext2/ext2.mk
+++ b/fs/ext2/ext2.mk
@@ -19,9 +19,9 @@ endif
# qstrip results in stripping consecutive spaces into a single one. So the
# variable is not qstrip-ed to preserve the integrity of the string value.
EXT2_LABEL := $(subst ",,$(BR2_TARGET_ROOTFS_EXT2_LABEL))
-ifneq ($(EXT2_LABEL),)
+#" Syntax highlighting... :-/ )
+
EXT2_OPTS += -l "$(EXT2_LABEL)"
-endif
ROOTFS_EXT2_DEPENDENCIES = host-mke2img
--
2.11.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 6/9] fs/ext2: allow reserving zero block for root
2017-05-01 15:58 [Buildroot] [PATCH 0/9] fs/ext2: cleanups and improvements Yann E. MORIN
` (4 preceding siblings ...)
2017-05-01 15:58 ` [Buildroot] [PATCH 5/9] fs/ext2: always pass the label option Yann E. MORIN
@ 2017-05-01 15:58 ` Yann E. MORIN
2017-05-01 15:58 ` [Buildroot] [PATCH 7/9] fs/ext2: simplify code Yann E. MORIN
` (3 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: Yann E. MORIN @ 2017-05-01 15:58 UTC (permalink / raw)
To: buildroot
The previous default, zero, just meant "use the default value of the
filesystem generator", which happened to be 5% (the traditional value
for all ext-creating tools we've ever seen).
So, change the new default accordingly to 5%.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
fs/ext2/Config.in | 7 ++++++-
fs/ext2/ext2.mk | 2 --
2 files changed, 6 insertions(+), 3 deletions(-)
diff --git a/fs/ext2/Config.in b/fs/ext2/Config.in
index a1e3647a14..09ec87786f 100644
--- a/fs/ext2/Config.in
+++ b/fs/ext2/Config.in
@@ -65,7 +65,12 @@ config BR2_TARGET_ROOTFS_EXT2_EXTRA_INODES
config BR2_TARGET_ROOTFS_EXT2_RESBLKS
int "reserved blocks percentage"
- default 0
+ default 5
+ help
+ The number of blocks on the filesystem (as a percentage of the
+ total number of blocksi), that are reserved for use by root.
+ Traditionally, this has been 5%, and all ext-related tools still
+ default to reserving 5% when creating a nez ext filesystem.
choice
prompt "Compression method"
diff --git a/fs/ext2/ext2.mk b/fs/ext2/ext2.mk
index 6a35b33117..57058b5fd2 100644
--- a/fs/ext2/ext2.mk
+++ b/fs/ext2/ext2.mk
@@ -12,9 +12,7 @@ EXT2_OPTS += -i $(BR2_TARGET_ROOTFS_EXT2_INODES)
EXT2_OPTS += -I $(BR2_TARGET_ROOTFS_EXT2_EXTRA_INODES)
-ifneq ($(strip $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)),0)
EXT2_OPTS += -r $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)
-endif
# qstrip results in stripping consecutive spaces into a single one. So the
# variable is not qstrip-ed to preserve the integrity of the string value.
--
2.11.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 7/9] fs/ext2: simplify code
2017-05-01 15:58 [Buildroot] [PATCH 0/9] fs/ext2: cleanups and improvements Yann E. MORIN
` (5 preceding siblings ...)
2017-05-01 15:58 ` [Buildroot] [PATCH 6/9] fs/ext2: allow reserving zero block for root Yann E. MORIN
@ 2017-05-01 15:58 ` Yann E. MORIN
2017-05-01 15:58 ` [Buildroot] [PATCH 8/9] package/mke2img: add option to specify block size Yann E. MORIN
` (2 subsequent siblings)
9 siblings, 0 replies; 14+ messages in thread
From: Yann E. MORIN @ 2017-05-01 15:58 UTC (permalink / raw)
To: buildroot
No option is conditional anymore, so just collate them into a single
assignment.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
fs/ext2/ext2.mk | 19 ++++++++-----------
1 file changed, 8 insertions(+), 11 deletions(-)
diff --git a/fs/ext2/ext2.mk b/fs/ext2/ext2.mk
index 57058b5fd2..16e14777c3 100644
--- a/fs/ext2/ext2.mk
+++ b/fs/ext2/ext2.mk
@@ -4,22 +4,19 @@
#
################################################################################
-EXT2_OPTS = -G $(BR2_TARGET_ROOTFS_EXT2_GEN) -R $(BR2_TARGET_ROOTFS_EXT2_REV)
-
-EXT2_OPTS += -b $(BR2_TARGET_ROOTFS_EXT2_BLOCKS)
-
-EXT2_OPTS += -i $(BR2_TARGET_ROOTFS_EXT2_INODES)
-
-EXT2_OPTS += -I $(BR2_TARGET_ROOTFS_EXT2_EXTRA_INODES)
-
-EXT2_OPTS += -r $(BR2_TARGET_ROOTFS_EXT2_RESBLKS)
-
# qstrip results in stripping consecutive spaces into a single one. So the
# variable is not qstrip-ed to preserve the integrity of the string value.
EXT2_LABEL := $(subst ",,$(BR2_TARGET_ROOTFS_EXT2_LABEL))
#" Syntax highlighting... :-/ )
-EXT2_OPTS += -l "$(EXT2_LABEL)"
+EXT2_OPTS = \
+ -G $(BR2_TARGET_ROOTFS_EXT2_GEN) \
+ -R $(BR2_TARGET_ROOTFS_EXT2_REV) \
+ -b $(BR2_TARGET_ROOTFS_EXT2_BLOCKS) \
+ -i $(BR2_TARGET_ROOTFS_EXT2_INODES) \
+ -I $(BR2_TARGET_ROOTFS_EXT2_EXTRA_INODES) \
+ -r $(BR2_TARGET_ROOTFS_EXT2_RESBLKS) \
+ -l "$(EXT2_LABEL)"
ROOTFS_EXT2_DEPENDENCIES = host-mke2img
--
2.11.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 8/9] package/mke2img: add option to specify block size
2017-05-01 15:58 [Buildroot] [PATCH 0/9] fs/ext2: cleanups and improvements Yann E. MORIN
` (6 preceding siblings ...)
2017-05-01 15:58 ` [Buildroot] [PATCH 7/9] fs/ext2: simplify code Yann E. MORIN
@ 2017-05-01 15:58 ` Yann E. MORIN
2017-05-01 15:58 ` [Buildroot] [PATCH 9/9] fs/ext2: " Yann E. MORIN
2017-05-01 19:18 ` [Buildroot] [PATCH 0/9] fs/ext2: cleanups and improvements Thomas Petazzoni
9 siblings, 0 replies; 14+ messages in thread
From: Yann E. MORIN @ 2017-05-01 15:58 UTC (permalink / raw)
To: buildroot
ext filesystems can use a block size of 1024, 2048, or 4096 bytes, the
former being interesting to store small files, while the latter being
more intersting to store bigger files.
So far, we were using the defualt, which was to use a 1024-byte block.
Continue doing so (for now...).
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
fs/ext2/ext2.mk | 1 +
package/mke2img/mke2img | 10 ++++++++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/fs/ext2/ext2.mk b/fs/ext2/ext2.mk
index 16e14777c3..0d5fc7f118 100644
--- a/fs/ext2/ext2.mk
+++ b/fs/ext2/ext2.mk
@@ -12,6 +12,7 @@ EXT2_LABEL := $(subst ",,$(BR2_TARGET_ROOTFS_EXT2_LABEL))
EXT2_OPTS = \
-G $(BR2_TARGET_ROOTFS_EXT2_GEN) \
-R $(BR2_TARGET_ROOTFS_EXT2_REV) \
+ -B 1024 \
-b $(BR2_TARGET_ROOTFS_EXT2_BLOCKS) \
-i $(BR2_TARGET_ROOTFS_EXT2_INODES) \
-I $(BR2_TARGET_ROOTFS_EXT2_EXTRA_INODES) \
diff --git a/package/mke2img/mke2img b/package/mke2img/mke2img
index 266df483aa..399012a2be 100755
--- a/package/mke2img/mke2img
+++ b/package/mke2img/mke2img
@@ -19,9 +19,10 @@ main() {
rev=1
nb_extra_inodes=0
- while getopts :hb:i:I:r:d:o:G:R:l:u: OPT; do
+ while getopts :hB:b:i:I:r:d:o:G:R:l:u: OPT; do
case "${OPT}" in
h) help; exit 0;;
+ B) block_size="${OPTARG}";;
b) nb_blocks=${OPTARG};;
i) nb_inodes=${OPTARG};;
I) nb_extra_inodes=${OPTARG};;
@@ -47,6 +48,11 @@ main() {
if [ -z "${nb_blocks}" ]; then
error "you must specify the size of the output image with '-b'\n"
fi
+ case "${block_size}" in
+ 1024|2048|4096) ;; # Sole valid values
+ '') error "you must specify the size of a block with -B\n";;
+ *) error "invalid block size '%s' (valid: 1024. 2048, 4096)\n" "${block_size}";;
+ esac
case "${gen}:${rev}" in
2:0|2:1|3:1|4:1)
;;
@@ -91,7 +97,7 @@ main() {
fi
# Generate the filesystem
- genext2fs_opts=( -z -b ${nb_blocks} -N ${nb_inodes} -d "${root_dir}" )
+ genext2fs_opts=( -z -B ${block_size} -b ${nb_blocks} -N ${nb_inodes} -d "${root_dir}" )
if [ -n "${nb_res_blocks}" ]; then
genext2fs_opts+=( -m ${nb_res_blocks} )
fi
--
2.11.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 9/9] fs/ext2: add option to specify block size
2017-05-01 15:58 [Buildroot] [PATCH 0/9] fs/ext2: cleanups and improvements Yann E. MORIN
` (7 preceding siblings ...)
2017-05-01 15:58 ` [Buildroot] [PATCH 8/9] package/mke2img: add option to specify block size Yann E. MORIN
@ 2017-05-01 15:58 ` Yann E. MORIN
2017-05-01 19:18 ` [Buildroot] [PATCH 0/9] fs/ext2: cleanups and improvements Thomas Petazzoni
9 siblings, 0 replies; 14+ messages in thread
From: Yann E. MORIN @ 2017-05-01 15:58 UTC (permalink / raw)
To: buildroot
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
---
fs/ext2/Config.in | 28 ++++++++++++++++++++++++++--
fs/ext2/ext2.mk | 2 +-
2 files changed, 27 insertions(+), 3 deletions(-)
diff --git a/fs/ext2/Config.in b/fs/ext2/Config.in
index 09ec87786f..627294e17f 100644
--- a/fs/ext2/Config.in
+++ b/fs/ext2/Config.in
@@ -44,12 +44,36 @@ config BR2_TARGET_ROOTFS_EXT2_REV
config BR2_TARGET_ROOTFS_EXT2_LABEL
string "filesystem label"
-# 61440 = 60MB, i.e usually small enough to fit on a 64MB media
+choice
+ bool "block size"
+ help
+ The size, in bytes, of a block.
+
+config BR2_TARGET_ROOTFS_EXT2_BLOCK_1024
+ bool "1024"
+
+config BR2_TARGET_ROOTFS_EXT2_BLOCK_2048
+ bool "2048"
+
+config BR2_TARGET_ROOTFS_EXT2_BLOCK_4096
+ bool "4096"
+
+endchoice
+
+config BR2_TARGET_ROOTFS_EXT2_BLOCK_SIZE
+ int
+ default 1024 if BR2_TARGET_ROOTFS_EXT2_BLOCK_1024
+ default 2048 if BR2_TARGET_ROOTFS_EXT2_BLOCK_2048
+ default 4096 if BR2_TARGET_ROOTFS_EXT2_BLOCK_4096
+
+# 61440 block od 1024 bytes = 60MB, i.e usually small enough to fit
+# on a 64MB media
config BR2_TARGET_ROOTFS_EXT2_BLOCKS
int "exact size in blocks"
default 61440
help
- Specify the file system size as a number of 1024-byte blocks.
+ Specify the file system size as a number of blocks, which
+ size is specified above.
config BR2_TARGET_ROOTFS_EXT2_INODES
int "exact number of inodes (leave at 0 for auto calculation)"
diff --git a/fs/ext2/ext2.mk b/fs/ext2/ext2.mk
index 0d5fc7f118..ec49caa3a5 100644
--- a/fs/ext2/ext2.mk
+++ b/fs/ext2/ext2.mk
@@ -12,7 +12,7 @@ EXT2_LABEL := $(subst ",,$(BR2_TARGET_ROOTFS_EXT2_LABEL))
EXT2_OPTS = \
-G $(BR2_TARGET_ROOTFS_EXT2_GEN) \
-R $(BR2_TARGET_ROOTFS_EXT2_REV) \
- -B 1024 \
+ -B $(BR2_TARGET_ROOTFS_EXT2_BLOCK_SIZE) \
-b $(BR2_TARGET_ROOTFS_EXT2_BLOCKS) \
-i $(BR2_TARGET_ROOTFS_EXT2_INODES) \
-I $(BR2_TARGET_ROOTFS_EXT2_EXTRA_INODES) \
--
2.11.0
^ permalink raw reply related [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 0/9] fs/ext2: cleanups and improvements
2017-05-01 15:58 [Buildroot] [PATCH 0/9] fs/ext2: cleanups and improvements Yann E. MORIN
` (8 preceding siblings ...)
2017-05-01 15:58 ` [Buildroot] [PATCH 9/9] fs/ext2: " Yann E. MORIN
@ 2017-05-01 19:18 ` Thomas Petazzoni
2017-05-01 20:58 ` Yann E. MORIN
9 siblings, 1 reply; 14+ messages in thread
From: Thomas Petazzoni @ 2017-05-01 19:18 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 1 May 2017 17:58:39 +0200, Yann E. MORIN wrote:
> J Evans (1):
> ext2: add help text for BR2_TARGET_ROOTFS_EXT2_BLOCKS
>
> Yann E. MORIN (8):
> package/mke2img: check nb_blocks is specified
> package/mke2img: specifying zero inodes means auto
> fs/ext2: always pass the number of inodes
> fs/ext2: always pass the label option
> fs/ext2: allow reserving zero block for root
> fs/ext2: simplify code
> package/mke2img: add option to specify block size
> fs/ext2: add option to specify block size
In general, I find this good. However, it badly conflicts with the
on-going work to move away from mke2img/genext2fs and use mkfs.ext2/3/4
instead.
For example, I believe mkfs.ext2/3/4 will automatically chose a sane
default block size depending on the filesystem size.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 0/9] fs/ext2: cleanups and improvements
2017-05-01 19:18 ` [Buildroot] [PATCH 0/9] fs/ext2: cleanups and improvements Thomas Petazzoni
@ 2017-05-01 20:58 ` Yann E. MORIN
0 siblings, 0 replies; 14+ messages in thread
From: Yann E. MORIN @ 2017-05-01 20:58 UTC (permalink / raw)
To: buildroot
Thomas, All,
On 2017-05-01 21:18 +0200, Thomas Petazzoni spake thusly:
> On Mon, 1 May 2017 17:58:39 +0200, Yann E. MORIN wrote:
> > J Evans (1):
> > ext2: add help text for BR2_TARGET_ROOTFS_EXT2_BLOCKS
> >
> > Yann E. MORIN (8):
> > package/mke2img: check nb_blocks is specified
> > package/mke2img: specifying zero inodes means auto
> > fs/ext2: always pass the number of inodes
> > fs/ext2: always pass the label option
> > fs/ext2: allow reserving zero block for root
> > fs/ext2: simplify code
> > package/mke2img: add option to specify block size
> > fs/ext2: add option to specify block size
>
> In general, I find this good. However, it badly conflicts with the
> on-going work to move away from mke2img/genext2fs and use mkfs.ext2/3/4
> instead.
But this is not ready yet, is it?
> For example, I believe mkfs.ext2/3/4 will automatically chose a sane
> default block size depending on the filesystem size.
And even if it does, ther are stil cases where one wants to override the
auto-calculated size.
So, even when we switch the backend that generates the filesystem, we'd
still want to have those options, I believe.
Regards,
Yann E. MORIN.
--
.-----------------.--------------------.------------------.--------------------.
| Yann E. MORIN | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software Designer | \ / CAMPAIGN | ___ |
| +33 223 225 172 `------------.-------: X AGAINST | \e/ There is no |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL | v conspiracy. |
'------------------------------^-------^------------------^--------------------'
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 1/9] ext2: add help text for BR2_TARGET_ROOTFS_EXT2_BLOCKS
2017-05-01 15:58 ` [Buildroot] [PATCH 1/9] ext2: add help text for BR2_TARGET_ROOTFS_EXT2_BLOCKS Yann E. MORIN
@ 2017-05-04 15:15 ` Thomas Petazzoni
0 siblings, 0 replies; 14+ messages in thread
From: Thomas Petazzoni @ 2017-05-04 15:15 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 1 May 2017 17:58:36 +0200, Yann E. MORIN wrote:
> From: J Evans <g4@novadsp.com>
>
> Signed-off-by: J Evans <g4@novadsp.com>
> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
> ---
> fs/ext2/Config.in | 2 ++
> 1 file changed, 2 insertions(+)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 14+ messages in thread
* [Buildroot] [PATCH 2/9] package/mke2img: check nb_blocks is specified
2017-05-01 15:58 ` [Buildroot] [PATCH 2/9] package/mke2img: check nb_blocks is specified Yann E. MORIN
@ 2017-05-13 13:17 ` Thomas Petazzoni
0 siblings, 0 replies; 14+ messages in thread
From: Thomas Petazzoni @ 2017-05-13 13:17 UTC (permalink / raw)
To: buildroot
Hello,
On Mon, 1 May 2017 17:58:37 +0200, Yann E. MORIN wrote:
> Since we do not have autocalculation anymore, the user must specify the
> exact number of blocks.
>
> Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
> ---
> package/mke2img/mke2img | 3 +++
> 1 file changed, 3 insertions(+)
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2017-05-13 13:17 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-05-01 15:58 [Buildroot] [PATCH 0/9] fs/ext2: cleanups and improvements Yann E. MORIN
2017-05-01 15:58 ` [Buildroot] [PATCH 1/9] ext2: add help text for BR2_TARGET_ROOTFS_EXT2_BLOCKS Yann E. MORIN
2017-05-04 15:15 ` Thomas Petazzoni
2017-05-01 15:58 ` [Buildroot] [PATCH 2/9] package/mke2img: check nb_blocks is specified Yann E. MORIN
2017-05-13 13:17 ` Thomas Petazzoni
2017-05-01 15:58 ` [Buildroot] [PATCH 3/9] package/mke2img: specifying zero inodes means auto Yann E. MORIN
2017-05-01 15:58 ` [Buildroot] [PATCH 4/9] fs/ext2: always pass the number of inodes Yann E. MORIN
2017-05-01 15:58 ` [Buildroot] [PATCH 5/9] fs/ext2: always pass the label option Yann E. MORIN
2017-05-01 15:58 ` [Buildroot] [PATCH 6/9] fs/ext2: allow reserving zero block for root Yann E. MORIN
2017-05-01 15:58 ` [Buildroot] [PATCH 7/9] fs/ext2: simplify code Yann E. MORIN
2017-05-01 15:58 ` [Buildroot] [PATCH 8/9] package/mke2img: add option to specify block size Yann E. MORIN
2017-05-01 15:58 ` [Buildroot] [PATCH 9/9] fs/ext2: " Yann E. MORIN
2017-05-01 19:18 ` [Buildroot] [PATCH 0/9] fs/ext2: cleanups and improvements Thomas Petazzoni
2017-05-01 20:58 ` Yann E. MORIN
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.