[24445] in Source-Commits

home help back first fref pref prev next nref lref last post

/svn/athena r24036 - trunk/debathena/config/reactivate/debian

daemon@ATHENA.MIT.EDU (Robert A Basch)
Wed Sep 30 18:00:17 2009

Date: Wed, 30 Sep 2009 18:00:04 -0400
From: Robert A Basch <rbasch@MIT.EDU>
Message-Id: <200909302200.n8UM04T0027774@drugstore.mit.edu>
To: source-commits@mit.edu
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Author: rbasch
Date: 2009-09-30 18:00:04 -0400 (Wed, 30 Sep 2009)
New Revision: 24036

Modified:
   trunk/debathena/config/reactivate/debian/athena-login-snapshot
   trunk/debathena/config/reactivate/debian/changelog
Log:
In reactivate:
  * Mount the login snapshot file system as ext2, with noatime.


Modified: trunk/debathena/config/reactivate/debian/athena-login-snapshot
===================================================================
--- trunk/debathena/config/reactivate/debian/athena-login-snapshot	2009-09-30 21:20:58 UTC (rev 24035)
+++ trunk/debathena/config/reactivate/debian/athena-login-snapshot	2009-09-30 22:00:04 UTC (rev 24036)
@@ -84,9 +84,19 @@
         "$rootlvpath"
     fi
 
+    # To improve performance, we do not want ext3 journalling on the
+    # snapshot filesystem, as it is destroyed at the end of session anyway.
+    # First disable full filesystem checking, and use fsck to ensure the
+    # journal is applied.  Then disable the journal, so we can mount it
+    # as an ext2 filesystem.
+    v tune2fs -c 0 -i 0 "$loginlvpath"
+    v e2fsck -y "$loginlvpath" || [ $? -eq 1 ]
+    v tune2fs -O ^has_journal "$loginlvpath"
+    sync
+
     # Mount the login snapshot.
     mkdir -p /login
-    v mount "$loginlvpath" /login
+    v mount -t ext2 -o noatime "$loginlvpath" /login
 
     # Enable subtree operations on /media by making it a mount point,
     # then share it.

Modified: trunk/debathena/config/reactivate/debian/changelog
===================================================================
--- trunk/debathena/config/reactivate/debian/changelog	2009-09-30 21:20:58 UTC (rev 24035)
+++ trunk/debathena/config/reactivate/debian/changelog	2009-09-30 22:00:04 UTC (rev 24036)
@@ -1,3 +1,9 @@
+debathena-reactivate (1.23) unstable; urgency=low
+
+  * Mount the login snapshot file system as ext2, with noatime.
+
+ -- Robert Basch <rbasch@mit.edu>  Wed, 30 Sep 2009 17:49:49 -0400
+
 debathena-reactivate (1.22) unstable; urgency=low
 
   * Use the new /usr/share/debathena-gdm-config/{Pre,Post}Session.d


home help back first fref pref prev next nref lref last post