[BL training-materials-updates] Block filesystems: promote ext4 instead of ext3

Michael Opdenacker michael.opdenacker at bootlin.com
Thu Oct 11 08:52:44 CEST 2018


Repository : git://git.free-electrons.com/training-materials.git
On branch  : master
Link       : http://git.free-electrons.com/training-materials/commit/?id=00923d0df4cd5413d25a58d5115ae0998cb33436

>---------------------------------------------------------------

commit 00923d0df4cd5413d25a58d5115ae0998cb33436
Author: Michael Opdenacker <michael.opdenacker at bootlin.com>
Date:   Thu Oct 11 08:52:44 2018 +0200

    Block filesystems: promote ext4 instead of ext3
    
    Signed-off-by: Michael Opdenacker <michael.opdenacker at bootlin.com>


>---------------------------------------------------------------

00923d0df4cd5413d25a58d5115ae0998cb33436
 .../sysdev-block-filesystems.tex                   |  8 +--
 .../mixing-filesystems.dia                         | 76 ++++++++++++++--------
 .../sysdev-block-filesystems.tex                   |  4 +-
 3 files changed, 55 insertions(+), 33 deletions(-)

diff --git a/labs/sysdev-block-filesystems/sysdev-block-filesystems.tex b/labs/sysdev-block-filesystems/sysdev-block-filesystems.tex
index c258536..6c9bdf7 100644
--- a/labs/sysdev-block-filesystems/sysdev-block-filesystems.tex
+++ b/labs/sysdev-block-filesystems/sysdev-block-filesystems.tex
@@ -24,7 +24,7 @@ directory, which we will progressively adapt to use block filesystems.
 
 \section{Filesystem support in the kernel}
 
-Recompile your kernel with support for SquashFS and ext3\footnote{Basic
+Recompile your kernel with support for SquashFS and ext4\footnote{Basic
 configuration options for these filesystems will be sufficient. No need
 for things like extended attributes.}.
 
@@ -34,7 +34,7 @@ Boot your board with this new kernel and on the NFS filesystem you
 used in this previous lab.
 
 Now, check the contents of \code{/proc/filesystems}. You should see
- that ext3 and SquashFS are now supported.
+ that ext4 and SquashFS are now supported.
 
 \section{Prepare the MMC card}
 
@@ -113,11 +113,11 @@ workstation, remove the MMC card and insert it again.
 
 \section{Data partition on the MMC disk}
 
-Using the \code{mkfs.ext3} create a journaled file system on the
+Using the \code{mkfs.ext4} create a journaled file system on the
 third partition of the MMC disk:
 
 \begin{verbatim}
-sudo mkfs.ext3 -L data -E nodiscard /dev/mmcblk0p3
+sudo mkfs.ext4 -L data -E nodiscard /dev/mmcblk0p3
 \end{verbatim}
 
 \begin{itemize}
diff --git a/slides/sysdev-block-filesystems/mixing-filesystems.dia b/slides/sysdev-block-filesystems/mixing-filesystems.dia
index dc9a4a1..d696d34 100644
--- a/slides/sysdev-block-filesystems/mixing-filesystems.dia
+++ b/slides/sysdev-block-filesystems/mixing-filesystems.dia
@@ -2,10 +2,10 @@
 <dia:diagram xmlns:dia="http://www.lysator.liu.se/~alla/dia/">
   <dia:diagramdata>
     <dia:attribute name="background">
-      <dia:color val="#ffffff"/>
+      <dia:color val="#ffffffff"/>
     </dia:attribute>
     <dia:attribute name="pagebreak">
-      <dia:color val="#000099"/>
+      <dia:color val="#000099ff"/>
     </dia:attribute>
     <dia:attribute name="paper">
       <dia:composite type="paper">
@@ -37,6 +37,9 @@
     </dia:attribute>
     <dia:attribute name="grid">
       <dia:composite type="grid">
+        <dia:attribute name="dynamic">
+          <dia:boolean val="true"/>
+        </dia:attribute>
         <dia:attribute name="width_x">
           <dia:real val="1"/>
         </dia:attribute>
@@ -53,7 +56,7 @@
       </dia:composite>
     </dia:attribute>
     <dia:attribute name="color">
-      <dia:color val="#d8e5e5"/>
+      <dia:color val="#d8e5e5ff"/>
     </dia:attribute>
     <dia:attribute name="guides">
       <dia:composite type="guides">
@@ -61,8 +64,27 @@
         <dia:attribute name="vguides"/>
       </dia:composite>
     </dia:attribute>
+    <dia:attribute name="display">
+      <dia:composite type="display">
+        <dia:attribute name="antialiased">
+          <dia:boolean val="false"/>
+        </dia:attribute>
+        <dia:attribute name="snap-to-grid">
+          <dia:boolean val="false"/>
+        </dia:attribute>
+        <dia:attribute name="snap-to-object">
+          <dia:boolean val="true"/>
+        </dia:attribute>
+        <dia:attribute name="show-grid">
+          <dia:boolean val="true"/>
+        </dia:attribute>
+        <dia:attribute name="show-connection-points">
+          <dia:boolean val="true"/>
+        </dia:attribute>
+      </dia:composite>
+    </dia:attribute>
   </dia:diagramdata>
-  <dia:layer name="Arrière-plan" visible="true" active="true">
+  <dia:layer name="Arrière-plan" visible="true" connectable="true" active="true">
     <dia:object type="Standard - Box" version="0" id="O0">
       <dia:attribute name="obj_pos">
         <dia:point val="22,4"/>
@@ -83,10 +105,10 @@
         <dia:real val="0.10000000149011612"/>
       </dia:attribute>
       <dia:attribute name="border_color">
-        <dia:color val="#5cacff"/>
+        <dia:color val="#5cacffff"/>
       </dia:attribute>
       <dia:attribute name="inner_color">
-        <dia:color val="#d8e5e5"/>
+        <dia:color val="#d8e5e5ff"/>
       </dia:attribute>
       <dia:attribute name="show_background">
         <dia:boolean val="true"/>
@@ -112,10 +134,10 @@
         <dia:real val="0.10000000149011612"/>
       </dia:attribute>
       <dia:attribute name="border_color">
-        <dia:color val="#d9cb2f"/>
+        <dia:color val="#d9cb2fff"/>
       </dia:attribute>
       <dia:attribute name="inner_color">
-        <dia:color val="#fff8a8"/>
+        <dia:color val="#fff8a8ff"/>
       </dia:attribute>
       <dia:attribute name="show_background">
         <dia:boolean val="true"/>
@@ -141,10 +163,10 @@
         <dia:real val="0.10000000149011612"/>
       </dia:attribute>
       <dia:attribute name="border_color">
-        <dia:color val="#cc1f1a"/>
+        <dia:color val="#cc1f1aff"/>
       </dia:attribute>
       <dia:attribute name="inner_color">
-        <dia:color val="#ffacac"/>
+        <dia:color val="#ffacacff"/>
       </dia:attribute>
       <dia:attribute name="show_background">
         <dia:boolean val="true"/>
@@ -155,7 +177,7 @@
         <dia:point val="29.25,11.35"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="29.25,10.5825;34.3725,11.53"/>
+        <dia:rectangle val="29.25,10.3725;34.06,11.6125"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
@@ -172,7 +194,7 @@
             <dia:point val="29.25,11.35"/>
           </dia:attribute>
           <dia:attribute name="color">
-            <dia:color val="#000000"/>
+            <dia:color val="#000000ff"/>
           </dia:attribute>
           <dia:attribute name="alignment">
             <dia:enum val="0"/>
@@ -188,7 +210,7 @@
         <dia:point val="29.4,21.8"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="29.4,21.0325;31.2825,21.98"/>
+        <dia:rectangle val="29.4,20.8225;31.2525,22.0625"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
@@ -205,7 +227,7 @@
             <dia:point val="29.4,21.8"/>
           </dia:attribute>
           <dia:attribute name="color">
-            <dia:color val="#000000"/>
+            <dia:color val="#000000ff"/>
           </dia:attribute>
           <dia:attribute name="alignment">
             <dia:enum val="0"/>
@@ -221,7 +243,7 @@
         <dia:point val="25,5"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="23.1425,4.2325;26.8575,5.18"/>
+        <dia:rectangle val="23.3863,4.0375;26.6137,5.2525"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
@@ -238,7 +260,7 @@
             <dia:point val="25,5"/>
           </dia:attribute>
           <dia:attribute name="color">
-            <dia:color val="#000000"/>
+            <dia:color val="#000000ff"/>
           </dia:attribute>
           <dia:attribute name="alignment">
             <dia:enum val="1"/>
@@ -320,12 +342,12 @@
         <dia:point val="25,13"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="24.1537,12.2325;25.8462,13.18"/>
+        <dia:rectangle val="24.1687,12.0071;25.8616,13.3133"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
           <dia:attribute name="string">
-            <dia:string>#ext3#</dia:string>
+            <dia:string>#ext4#</dia:string>
           </dia:attribute>
           <dia:attribute name="font">
             <dia:font family="Latin Modern Sans" style="80" name="Courier"/>
@@ -337,7 +359,7 @@
             <dia:point val="25,13"/>
           </dia:attribute>
           <dia:attribute name="color">
-            <dia:color val="#000000"/>
+            <dia:color val="#000000ff"/>
           </dia:attribute>
           <dia:attribute name="alignment">
             <dia:enum val="1"/>
@@ -353,7 +375,7 @@
         <dia:point val="25,21"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="23.8475,20.2325;26.1525,21.18"/>
+        <dia:rectangle val="23.9025,20.0375;26.0975,21.2525"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
@@ -370,7 +392,7 @@
             <dia:point val="25,21"/>
           </dia:attribute>
           <dia:attribute name="color">
-            <dia:color val="#000000"/>
+            <dia:color val="#000000ff"/>
           </dia:attribute>
           <dia:attribute name="alignment">
             <dia:enum val="1"/>
@@ -386,7 +408,7 @@
         <dia:point val="25.05,7.5"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="22.7775,6.86;27.3225,9.41389"/>
+        <dia:rectangle val="22.8963,6.685;27.2038,9.48389"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
@@ -405,7 +427,7 @@ root filesystem#</dia:string>
             <dia:point val="25.05,7.5"/>
           </dia:attribute>
           <dia:attribute name="color">
-            <dia:color val="#000000"/>
+            <dia:color val="#000000ff"/>
           </dia:attribute>
           <dia:attribute name="alignment">
             <dia:enum val="1"/>
@@ -421,7 +443,7 @@ root filesystem#</dia:string>
         <dia:point val="25.14,14.595"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="23.12,13.955;27.16,17.3908"/>
+        <dia:rectangle val="23.2163,13.78;27.0638,17.4608"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
@@ -441,7 +463,7 @@ data#</dia:string>
             <dia:point val="25.14,14.595"/>
           </dia:attribute>
           <dia:attribute name="color">
-            <dia:color val="#000000"/>
+            <dia:color val="#000000ff"/>
           </dia:attribute>
           <dia:attribute name="alignment">
             <dia:enum val="1"/>
@@ -457,7 +479,7 @@ data#</dia:string>
         <dia:point val="25.045,22.135"/>
       </dia:attribute>
       <dia:attribute name="obj_bb">
-        <dia:rectangle val="23.1625,21.495;26.9275,23.1669"/>
+        <dia:rectangle val="23.2338,21.32;26.8562,23.2369"/>
       </dia:attribute>
       <dia:attribute name="text">
         <dia:composite type="text">
@@ -475,7 +497,7 @@ volatile data#</dia:string>
             <dia:point val="25.045,22.135"/>
           </dia:attribute>
           <dia:attribute name="color">
-            <dia:color val="#000000"/>
+            <dia:color val="#000000ff"/>
           </dia:attribute>
           <dia:attribute name="alignment">
             <dia:enum val="1"/>
diff --git a/slides/sysdev-block-filesystems/sysdev-block-filesystems.tex b/slides/sysdev-block-filesystems/sysdev-block-filesystems.tex
index 0a10cff..cbb2284 100644
--- a/slides/sysdev-block-filesystems/sysdev-block-filesystems.tex
+++ b/slides/sysdev-block-filesystems/sysdev-block-filesystems.tex
@@ -308,7 +308,7 @@ major minor #blocks name
       Typically used for the root filesystem (binaries, kernel...).\\
       Compression saves space. Read-only access protects your system
       from mistakes and data corruption.
-    \item A read-write partition with a journaled filesystem (like \code{ext3})\\
+    \item A read-write partition with a journaled filesystem (like \code{ext4})\\
       Used to store user or configuration data.\\
       Guarantees filesystem integrity after power off or crashes.
     \item Ram storage for temporary files (\code{tmpfs})
@@ -338,7 +338,7 @@ major minor #blocks name
   \begin{itemize}
   \item Creating partitions on your block storage
   \item Booting your system with a mix of filesystems: SquashFS for
-    the root filesystem (including applications), ext3 for
+    the root filesystem (including applications), ext4 for
     configuration and user data, and tmpfs for
     temporary system files.
   \end{itemize}




More information about the training-materials-updates mailing list