From d48054a36e960c40c132abc45f9ee00453915da2 Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Thu, 10 Nov 2011 15:26:47 +0200 Subject: [PATCH] pnd_run: mount squashfs and isofs as readonly otherwise kernel opens pnds as writable and pndnotifyd gets unwanted IN_CLOSE_WRITE event on exit, which causes a rescan and .desktop regeneration (slow thing). Not to mention those filesystems are readonly anyway. --- testdata/scripts/pnd_run.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/testdata/scripts/pnd_run.sh b/testdata/scripts/pnd_run.sh index 2b52416..c009a3e 100755 --- a/testdata/scripts/pnd_run.sh +++ b/testdata/scripts/pnd_run.sh @@ -314,8 +314,8 @@ mountPnd() { #detect fs case $PND_FSTYPE in ISO) - /sbin/losetup $FREELOOP "$PND" #attach the pnd to the loop device - mntline="mount" #setup the mountline for later + /sbin/losetup -r $FREELOOP "$PND" #attach the pnd to the loop device + mntline="mount -o ro" #setup the mountline for later mntdev="${FREELOOP}" ;; directory) @@ -325,8 +325,8 @@ mountPnd() { mntdev="${PND}" ;; Squashfs) - /sbin/losetup $FREELOOP "$PND" #attach the pnd to the loop device - mntline="mount -t squashfs" + /sbin/losetup -r $FREELOOP "$PND" #attach the pnd to the loop device + mntline="mount -t squashfs -o ro" mntdev="${FREELOOP}" ;; *) -- 2.39.5