[elbe-devel] [PATCH 1/3] Add tune2fs for fstabentry
Torben Hohn
torben.hohn at linutronix.de
Tue Jun 25 15:58:20 CEST 2019
On Tue, Jun 25, 2019 at 02:40:05PM +0200, dion at linutronix.de wrote:
> From: Olivier Dion <dion at linutronix.de>
>
> Signed-off-by: Olivier Dion <dion at linutronix.de>
Reviewed-by: Torben Hohn <torben.hohn at linutronix.de>
> ---
> elbepack/fstab.py | 6 ++++++
> 1 file changed, 6 insertions(+)
>
> diff --git a/elbepack/fstab.py b/elbepack/fstab.py
> index 5605670b..0cd569c6 100644
> --- a/elbepack/fstab.py
> +++ b/elbepack/fstab.py
> @@ -7,6 +7,7 @@
>
> import os
>
> +from elbepack.shellhelper import system
>
> def get_mtdnum(xml, label):
> tgt = xml.node("target")
> @@ -88,6 +89,7 @@ class fstabentry(object):
> self.fstype = entry.text("fs/type")
> self.mkfsopt = entry.text("fs/mkfs", default="")
> self.passno = entry.text("fs/passno", default="0")
> + self.tune = entry.text("fs/tune2fs", default=None)
>
> # These attributes are filled later
> # using set_geometry()
> @@ -140,3 +142,7 @@ class fstabentry(object):
> def losetup(self, outf, loopdev):
> outf.do('losetup -o%d --sizelimit %d /dev/%s "%s"' %
> (self.offset, self.size, loopdev, self.filename))
> +
> + def tuning(self, loopdev):
> + if self.tune:
> + system('tune2fs "%s" %s' % (self.tune, loopdev))
> --
> 2.11.0
>
>
> _______________________________________________
> elbe-devel mailing list
> elbe-devel at linutronix.de
> https://lists.linutronix.de/mailman/listinfo/elbe-devel
--
Torben Hohn
Linutronix GmbH | Bahnhofstrasse 3 | D-88690 Uhldingen-Mühlhofen
Phone: +49 7556 25 999 18; Fax.: +49 7556 25 999 99
Hinweise zum Datenschutz finden Sie hier (Informations on data privacy
can be found here): https://linutronix.de/kontakt/Datenschutz.php
Linutronix GmbH | Firmensitz (Registered Office): Uhldingen-Mühlhofen |
Registergericht (Registration Court): Amtsgericht Freiburg i.Br., HRB700
806 | Geschäftsführer (Managing Directors): Heinz Egger, Thomas Gleixner
More information about the elbe-devel
mailing list