Openembedded Core Discussions
 help / color / mirror / Atom feed
* [PATCH 0/2] Fix for self-hosted-image
@ 2012-04-04 15:32 Paul Eggleton
  2012-04-04 15:32 ` [PATCH 1/2] classes/image_types: add IMAGE_TUNE2FS_ext3 Paul Eggleton
                   ` (2 more replies)
  0 siblings, 3 replies; 9+ messages in thread
From: Paul Eggleton @ 2012-04-04 15:32 UTC (permalink / raw)
  To: openembedded-core

Allow additional options when running tune2fs -j on ext3 images and use
that to specify -m 0.5 for self-hosted-image.

Note these patches should be applied on top of Saul's recent
self-hosted-image patch once that is merged.

The following changes since commit 7c794db563cc35f6deaab1dd0fef35015d47e567:

  self-hosted-image: Increase space for build and allow builder user sudo access (2012-04-04 16:16:27 +0100)

are available in the git repository at:
  git://git.openembedded.org/openembedded-core-contrib paule/self
  http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/self

Paul Eggleton (2):
  classes/image_types: add IMAGE_TUNE2FS_ext3
  self-hosted-image: decrease reserved space to 0.5%

 meta/classes/image_types.bbclass              |    4 +++-
 meta/recipes-core/images/self-hosted-image.bb |    4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

-- 
1.7.5.4




^ permalink raw reply	[flat|nested] 9+ messages in thread

* [PATCH 1/2] classes/image_types: add IMAGE_TUNE2FS_ext3
  2012-04-04 15:32 [PATCH 0/2] Fix for self-hosted-image Paul Eggleton
@ 2012-04-04 15:32 ` Paul Eggleton
  2012-04-04 16:57   ` Otavio Salvador
  2012-04-04 15:32 ` [PATCH 2/2] self-hosted-image: decrease reserved space to 0.5% Paul Eggleton
  2012-04-04 15:46 ` [PATCH 0/2] Fix for self-hosted-image Saul Wold
  2 siblings, 1 reply; 9+ messages in thread
From: Paul Eggleton @ 2012-04-04 15:32 UTC (permalink / raw)
  To: openembedded-core

Add a variable that allows additional options to be passed to tune2fs,
such as -m to control the amount of space reserved for root.

This could potentially be added for other filesystems, but right now we
need it only for ext3 for self-hosted-image.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 meta/classes/image_types.bbclass |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/meta/classes/image_types.bbclass b/meta/classes/image_types.bbclass
index b590ae1..152e5b4 100644
--- a/meta/classes/image_types.bbclass
+++ b/meta/classes/image_types.bbclass
@@ -132,9 +132,11 @@ IMAGE_CMD_ext2 () {
 	rmdir ${DEPLOY_DIR_IMAGE}/tmp.gz-${PN}
 }
 
+IMAGE_TUNE2FS_ext3 ?= ""
+
 IMAGE_CMD_ext3 () {
 	genext2fs -b $ROOTFS_SIZE -d ${IMAGE_ROOTFS} ${EXTRA_IMAGECMD} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3
-	tune2fs -j ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3
+	tune2fs -j ${IMAGE_TUNE2FS_ext3} ${DEPLOY_DIR_IMAGE}/${IMAGE_NAME}.rootfs.ext3
 }
 
 oe_mkext4fs () {
-- 
1.7.5.4




^ permalink raw reply related	[flat|nested] 9+ messages in thread

* [PATCH 2/2] self-hosted-image: decrease reserved space to 0.5%
  2012-04-04 15:32 [PATCH 0/2] Fix for self-hosted-image Paul Eggleton
  2012-04-04 15:32 ` [PATCH 1/2] classes/image_types: add IMAGE_TUNE2FS_ext3 Paul Eggleton
@ 2012-04-04 15:32 ` Paul Eggleton
  2012-04-04 16:58   ` Otavio Salvador
  2012-04-04 15:46 ` [PATCH 0/2] Fix for self-hosted-image Saul Wold
  2 siblings, 1 reply; 9+ messages in thread
From: Paul Eggleton @ 2012-04-04 15:32 UTC (permalink / raw)
  To: openembedded-core

The default amount of reserved space for ext2/3 is 5% - this amounts to
about 2GB of a 40GB filesystem that the builder user can't make use of.
We don't need this much reserved so peg it back to 0.5% which should be
more than enough.

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
---
 meta/recipes-core/images/self-hosted-image.bb |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/meta/recipes-core/images/self-hosted-image.bb b/meta/recipes-core/images/self-hosted-image.bb
index d2faa66..17ae9ce 100644
--- a/meta/recipes-core/images/self-hosted-image.bb
+++ b/meta/recipes-core/images/self-hosted-image.bb
@@ -4,7 +4,7 @@ LICENSE = "MIT"
 LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=3f40d7994397109285ec7b81fdeb3b58 \
                     file://${COREBASE}/meta/COPYING.MIT;md5=3da9cfbcb788c80a0384361b4de20420"
 
-PR = "r9"
+PR = "r10"
 
 CORE_IMAGE_EXTRA_INSTALL = "\
     task-self-hosted \
@@ -14,6 +14,8 @@ IMAGE_FEATURES += "x11-mini package-management"
 
 # Ensure there's enough space to do a core-image-sato build, with rm_work enabled
 IMAGE_ROOTFS_EXTRA_SPACE = "41943040"
+# We don't need to reserve much space for root, 0.5% is more than enough
+IMAGE_TUNE2FS_ext3 = "-m 0.5"
 
 # Do a quiet boot with limited console messages
 APPEND += "quiet"
-- 
1.7.5.4




^ permalink raw reply related	[flat|nested] 9+ messages in thread

* Re: [PATCH 0/2] Fix for self-hosted-image
  2012-04-04 15:32 [PATCH 0/2] Fix for self-hosted-image Paul Eggleton
  2012-04-04 15:32 ` [PATCH 1/2] classes/image_types: add IMAGE_TUNE2FS_ext3 Paul Eggleton
  2012-04-04 15:32 ` [PATCH 2/2] self-hosted-image: decrease reserved space to 0.5% Paul Eggleton
@ 2012-04-04 15:46 ` Saul Wold
  2 siblings, 0 replies; 9+ messages in thread
From: Saul Wold @ 2012-04-04 15:46 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer; +Cc: Paul Eggleton

On 04/04/2012 08:32 AM, Paul Eggleton wrote:
> Allow additional options when running tune2fs -j on ext3 images and use
> that to specify -m 0.5 for self-hosted-image.
>
> Note these patches should be applied on top of Saul's recent
> self-hosted-image patch once that is merged.
>
> The following changes since commit 7c794db563cc35f6deaab1dd0fef35015d47e567:
>
>    self-hosted-image: Increase space for build and allow builder user sudo access (2012-04-04 16:16:27 +0100)
>
> are available in the git repository at:
>    git://git.openembedded.org/openembedded-core-contrib paule/self
>    http://cgit.openembedded.org/cgit.cgi/openembedded-core-contrib/log/?h=paule/self
>
> Paul Eggleton (2):
>    classes/image_types: add IMAGE_TUNE2FS_ext3
>    self-hosted-image: decrease reserved space to 0.5%
>
>   meta/classes/image_types.bbclass              |    4 +++-
>   meta/recipes-core/images/self-hosted-image.bb |    4 +++-
>   2 files changed, 6 insertions(+), 2 deletions(-)
>
Acked-by: Saul Wold <sgw@linux.intel.com>




^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 1/2] classes/image_types: add IMAGE_TUNE2FS_ext3
  2012-04-04 15:32 ` [PATCH 1/2] classes/image_types: add IMAGE_TUNE2FS_ext3 Paul Eggleton
@ 2012-04-04 16:57   ` Otavio Salvador
  2012-04-04 17:12     ` Paul Eggleton
  0 siblings, 1 reply; 9+ messages in thread
From: Otavio Salvador @ 2012-04-04 16:57 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, Apr 4, 2012 at 12:32, Paul Eggleton
<paul.eggleton@linux.intel.com> wrote:
> Add a variable that allows additional options to be passed to tune2fs,
> such as -m to control the amount of space reserved for root.

I'd prefer something like

IMG_POSTCMD_<fstype>

So it is generic enough to not be confusing for other filesystems.

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 2/2] self-hosted-image: decrease reserved space to 0.5%
  2012-04-04 15:32 ` [PATCH 2/2] self-hosted-image: decrease reserved space to 0.5% Paul Eggleton
@ 2012-04-04 16:58   ` Otavio Salvador
  0 siblings, 0 replies; 9+ messages in thread
From: Otavio Salvador @ 2012-04-04 16:58 UTC (permalink / raw)
  To: Patches and discussions about the oe-core layer

On Wed, Apr 4, 2012 at 12:32, Paul Eggleton
<paul.eggleton@linux.intel.com> wrote:
> The default amount of reserved space for ext2/3 is 5% - this amounts to
> about 2GB of a 40GB filesystem that the builder user can't make use of.
> We don't need this much reserved so peg it back to 0.5% which should be
> more than enough.

Please look at my comment about a possible alternative way of doing
it, in a more generic one.

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 1/2] classes/image_types: add IMAGE_TUNE2FS_ext3
  2012-04-04 16:57   ` Otavio Salvador
@ 2012-04-04 17:12     ` Paul Eggleton
  2012-04-04 17:26       ` Otavio Salvador
  0 siblings, 1 reply; 9+ messages in thread
From: Paul Eggleton @ 2012-04-04 17:12 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: openembedded-core

On Wednesday 04 April 2012 13:57:04 Otavio Salvador wrote:
> On Wed, Apr 4, 2012 at 12:32, Paul Eggleton
> 
> <paul.eggleton@linux.intel.com> wrote:
> > Add a variable that allows additional options to be passed to tune2fs,
> > such as -m to control the amount of space reserved for root.
> 
> I'd prefer something like
> 
> IMG_POSTCMD_<fstype>
> 
> So it is generic enough to not be confusing for other filesystems.

Are you suggesting this would hold the entire post-command to be run? If not, 
what other post command could we be referring to in the case of other 
filesystems? (tune2fs being valid for ext2, ext3 and ext4).

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 1/2] classes/image_types: add IMAGE_TUNE2FS_ext3
  2012-04-04 17:12     ` Paul Eggleton
@ 2012-04-04 17:26       ` Otavio Salvador
  2012-04-04 19:30         ` Paul Eggleton
  0 siblings, 1 reply; 9+ messages in thread
From: Otavio Salvador @ 2012-04-04 17:26 UTC (permalink / raw)
  To: Paul Eggleton; +Cc: openembedded-core

On Wed, Apr 4, 2012 at 14:12, Paul Eggleton
<paul.eggleton@linux.intel.com> wrote:
> Are you suggesting this would hold the entire post-command to be run? If not,
> what other post command could we be referring to in the case of other
> filesystems? (tune2fs being valid for ext2, ext3 and ext4).

Yes; it is more generic and for someone using it, it makes no
difference in complexity et all.

-- 
Otavio Salvador                             O.S. Systems
E-mail: otavio@ossystems.com.br  http://www.ossystems.com.br
Mobile: +55 53 9981-7854              http://projetos.ossystems.com.br



^ permalink raw reply	[flat|nested] 9+ messages in thread

* Re: [PATCH 1/2] classes/image_types: add IMAGE_TUNE2FS_ext3
  2012-04-04 17:26       ` Otavio Salvador
@ 2012-04-04 19:30         ` Paul Eggleton
  0 siblings, 0 replies; 9+ messages in thread
From: Paul Eggleton @ 2012-04-04 19:30 UTC (permalink / raw)
  To: Otavio Salvador; +Cc: openembedded-core

On Wednesday 04 April 2012 14:26:26 Otavio Salvador wrote:
> On Wed, Apr 4, 2012 at 14:12, Paul Eggleton
> 
> <paul.eggleton@linux.intel.com> wrote:
> > Are you suggesting this would hold the entire post-command to be run? If
> > not, what other post command could we be referring to in the case of
> > other filesystems? (tune2fs being valid for ext2, ext3 and ext4).
> 
> Yes; it is more generic and for someone using it, it makes no
> difference in complexity et all.

Actually it does, but I can see some value in it. v2 on the way.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre



^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-04-04 19:40 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-04-04 15:32 [PATCH 0/2] Fix for self-hosted-image Paul Eggleton
2012-04-04 15:32 ` [PATCH 1/2] classes/image_types: add IMAGE_TUNE2FS_ext3 Paul Eggleton
2012-04-04 16:57   ` Otavio Salvador
2012-04-04 17:12     ` Paul Eggleton
2012-04-04 17:26       ` Otavio Salvador
2012-04-04 19:30         ` Paul Eggleton
2012-04-04 15:32 ` [PATCH 2/2] self-hosted-image: decrease reserved space to 0.5% Paul Eggleton
2012-04-04 16:58   ` Otavio Salvador
2012-04-04 15:46 ` [PATCH 0/2] Fix for self-hosted-image Saul Wold

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox