All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH morty v2] wic: partition: Run fsck on EXT file systems
@ 2017-03-31 12:51 Daniel Schultz
  2017-03-31 17:14 ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Schultz @ 2017-03-31 12:51 UTC (permalink / raw)
  To: openembedded-core

Mkfs may create EXT file systems which can only be optimized by fsck
and not by itself, e.g. directory optimization (in Pass 3A).

To prevent those optimizations during runtime, it will be performed after
the creation of an EXT file system.

Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
---
 scripts/lib/wic/partition.py | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
index 3b3bd2d..152eb7b 100644
--- a/scripts/lib/wic/partition.py
+++ b/scripts/lib/wic/partition.py
@@ -239,6 +239,9 @@ class Partition():
             (self.fstype, extra_imagecmd, rootfs, label_str, rootfs_dir)
         exec_native_cmd(mkfs_cmd, native_sysroot, pseudo=pseudo)
 
+        mkfs_cmd = "fsck.%s -pvfD %s" % (self.fstype, rootfs)
+        exec_native_cmd(mkfs_cmd, native_sysroot, pseudo=pseudo)
+
     def prepare_rootfs_btrfs(self, rootfs, oe_builddir, rootfs_dir,
                              native_sysroot, pseudo):
         """
-- 
1.9.1



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

* Re: [PATCH morty v2] wic: partition: Run fsck on EXT file systems
  2017-03-31 12:51 [PATCH morty v2] wic: partition: Run fsck on EXT file systems Daniel Schultz
@ 2017-03-31 17:14 ` Khem Raj
  2017-04-03  7:47   ` Daniel Schultz
  0 siblings, 1 reply; 4+ messages in thread
From: Khem Raj @ 2017-03-31 17:14 UTC (permalink / raw)
  To: Daniel Schultz, openembedded-core


[-- Attachment #1.1: Type: text/plain, Size: 1231 bytes --]



On 3/31/17 5:51 AM, Daniel Schultz wrote:
> Mkfs may create EXT file systems which can only be optimized by fsck
> and not by itself, e.g. directory optimization (in Pass 3A).
> 
> To prevent those optimizations during runtime, it will be performed after
> the creation of an EXT file system.
> 
> Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
> ---
>  scripts/lib/wic/partition.py | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
> index 3b3bd2d..152eb7b 100644
> --- a/scripts/lib/wic/partition.py
> +++ b/scripts/lib/wic/partition.py
> @@ -239,6 +239,9 @@ class Partition():
>              (self.fstype, extra_imagecmd, rootfs, label_str, rootfs_dir)
>          exec_native_cmd(mkfs_cmd, native_sysroot, pseudo=pseudo)
>  
> +        mkfs_cmd = "fsck.%s -pvfD %s" % (self.fstype, rootfs)
> +        exec_native_cmd(mkfs_cmd, native_sysroot, pseudo=pseudo)
> +

is this required on master too ? if yes I would suggest to propose it
for master and then do a backport.

>      def prepare_rootfs_btrfs(self, rootfs, oe_builddir, rootfs_dir,
>                               native_sysroot, pseudo):
>          """
> 


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 211 bytes --]

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

* Re: [PATCH morty v2] wic: partition: Run fsck on EXT file systems
  2017-03-31 17:14 ` Khem Raj
@ 2017-04-03  7:47   ` Daniel Schultz
  2017-04-03 15:41     ` Khem Raj
  0 siblings, 1 reply; 4+ messages in thread
From: Daniel Schultz @ 2017-04-03  7:47 UTC (permalink / raw)
  To: Khem Raj, openembedded-core

Hi,

Am 31.03.2017 um 19:14 schrieb Khem Raj:
>
>
> On 3/31/17 5:51 AM, Daniel Schultz wrote:
>> Mkfs may create EXT file systems which can only be optimized by fsck
>> and not by itself, e.g. directory optimization (in Pass 3A).
>>
>> To prevent those optimizations during runtime, it will be performed after
>> the creation of an EXT file system.
>>
>> Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
>> ---
>>  scripts/lib/wic/partition.py | 3 +++
>>  1 file changed, 3 insertions(+)
>>
>> diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
>> index 3b3bd2d..152eb7b 100644
>> --- a/scripts/lib/wic/partition.py
>> +++ b/scripts/lib/wic/partition.py
>> @@ -239,6 +239,9 @@ class Partition():
>>              (self.fstype, extra_imagecmd, rootfs, label_str, rootfs_dir)
>>          exec_native_cmd(mkfs_cmd, native_sysroot, pseudo=pseudo)
>>
>> +        mkfs_cmd = "fsck.%s -pvfD %s" % (self.fstype, rootfs)
>> +        exec_native_cmd(mkfs_cmd, native_sysroot, pseudo=pseudo)
>> +
>
> is this required on master too ? if yes I would suggest to propose it
> for master and then do a backport.
>

Yes, it's already on master. If I would backport it, I also have to 
backport a patch for e2fsprogs.
Since the new release is very close I would prefer this patch.

>>      def prepare_rootfs_btrfs(self, rootfs, oe_builddir, rootfs_dir,
>>                               native_sysroot, pseudo):
>>          """
>>
>

-- 
Mit freundlichen Grüßen,
With best regards,
   Daniel Schultz


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

* Re: [PATCH morty v2] wic: partition: Run fsck on EXT file systems
  2017-04-03  7:47   ` Daniel Schultz
@ 2017-04-03 15:41     ` Khem Raj
  0 siblings, 0 replies; 4+ messages in thread
From: Khem Raj @ 2017-04-03 15:41 UTC (permalink / raw)
  To: Daniel Schultz; +Cc: Patches and discussions about the oe-core layer

On Mon, Apr 3, 2017 at 12:47 AM, Daniel Schultz <d.schultz@phytec.de> wrote:
> Hi,
>
> Am 31.03.2017 um 19:14 schrieb Khem Raj:
>>
>>
>>
>> On 3/31/17 5:51 AM, Daniel Schultz wrote:
>>>
>>> Mkfs may create EXT file systems which can only be optimized by fsck
>>> and not by itself, e.g. directory optimization (in Pass 3A).
>>>
>>> To prevent those optimizations during runtime, it will be performed after
>>> the creation of an EXT file system.
>>>
>>> Signed-off-by: Daniel Schultz <d.schultz@phytec.de>
>>> ---
>>>  scripts/lib/wic/partition.py | 3 +++
>>>  1 file changed, 3 insertions(+)
>>>
>>> diff --git a/scripts/lib/wic/partition.py b/scripts/lib/wic/partition.py
>>> index 3b3bd2d..152eb7b 100644
>>> --- a/scripts/lib/wic/partition.py
>>> +++ b/scripts/lib/wic/partition.py
>>> @@ -239,6 +239,9 @@ class Partition():
>>>              (self.fstype, extra_imagecmd, rootfs, label_str, rootfs_dir)
>>>          exec_native_cmd(mkfs_cmd, native_sysroot, pseudo=pseudo)
>>>
>>> +        mkfs_cmd = "fsck.%s -pvfD %s" % (self.fstype, rootfs)
>>> +        exec_native_cmd(mkfs_cmd, native_sysroot, pseudo=pseudo)
>>> +
>>
>>
>> is this required on master too ? if yes I would suggest to propose it
>> for master and then do a backport.
>>
>
> Yes, it's already on master. If I would backport it, I also have to backport
> a patch for e2fsprogs.
> Since the new release is very close I would prefer this patch.
>

it might be fine for your internal release. For upstream release branches we
should go by backports.


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

end of thread, other threads:[~2017-04-03 15:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-03-31 12:51 [PATCH morty v2] wic: partition: Run fsck on EXT file systems Daniel Schultz
2017-03-31 17:14 ` Khem Raj
2017-04-03  7:47   ` Daniel Schultz
2017-04-03 15:41     ` Khem Raj

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.