From owner-freebsd-current@FreeBSD.ORG Mon Jul 4 08:44:57 2005 Return-Path: X-Original-To: freebsd-current@freebsd.org Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7872E16A41C for ; Mon, 4 Jul 2005 08:44:57 +0000 (GMT) (envelope-from spoerlein@informatik.uni-wuerzburg.de) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id E462643D55 for ; Mon, 4 Jul 2005 08:44:56 +0000 (GMT) (envelope-from spoerlein@informatik.uni-wuerzburg.de) Received: from wrzx34.rz.uni-wuerzburg.de (wrzx34.rz.uni-wuerzburg.de [132.187.3.34]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 08668DDBBB; Mon, 4 Jul 2005 10:44:56 +0200 (CEST) Received: from virusscan (localhost [127.0.0.1]) by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP id DCA38B183A; Mon, 4 Jul 2005 10:44:55 +0200 (CEST) Received: from wrzx28.rz.uni-wuerzburg.de (wrzx28.rz.uni-wuerzburg.de [132.187.3.28]) by wrzx34.rz.uni-wuerzburg.de (Postfix) with ESMTP id AD88AB170D; Mon, 4 Jul 2005 10:44:55 +0200 (CEST) Received: from frodo.galgenberg.net (wwsx14.win-screen.uni-wuerzburg.de [132.187.253.14]) by wrzx28.rz.uni-wuerzburg.de (Postfix) with ESMTP id 52DB5D962C; Mon, 4 Jul 2005 10:44:55 +0200 (CEST) Received: from coyote.q.local (gb-21-237.galgenberg.net [172.16.21.237]) by frodo.galgenberg.net (8.13.1/8.13.1) with ESMTP id j648ituc060492; Mon, 4 Jul 2005 10:44:55 +0200 (CEST) (envelope-from spoerlein@informatik.uni-wuerzburg.de) Received: from roadrunner.q.local (roadrunner.q.local [192.168.0.148]) by coyote.q.local (8.13.3/8.13.1) with ESMTP id j648isP5074300; Mon, 4 Jul 2005 10:44:54 +0200 (CEST) (envelope-from spoerlein@informatik.uni-wuerzburg.de) Received: from roadrunner.q.local (localhost [127.0.0.1]) by roadrunner.q.local (8.13.4/8.13.3) with ESMTP id j648isoE032903; Mon, 4 Jul 2005 10:44:54 +0200 (CEST) (envelope-from spoerlein@informatik.uni-wuerzburg.de) Received: (from q@localhost) by roadrunner.q.local (8.13.4/8.13.3/Submit) id j648is3I032902; Mon, 4 Jul 2005 10:44:54 +0200 (CEST) (envelope-from spoerlein@informatik.uni-wuerzburg.de) Date: Mon, 4 Jul 2005 10:44:54 +0200 From: Ulrich Spoerlein To: Dario Freni Message-ID: <20050704084453.GB941@galgenberg.net> Mail-Followup-To: Dario Freni , freebsd-current@freebsd.org References: <20050702124048.GB89744@cvs.freesbie.org> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="+pHx0qQiF2pBVqBT" Content-Disposition: inline In-Reply-To: <20050702124048.GB89744@cvs.freesbie.org> User-Agent: mutt-ng devel (FreeBSD) X-Virus-Scanned: by amavisd-new (Rechenzentrum Universitaet Wuerzburg) Cc: freebsd-current@freebsd.org Subject: Re: Weird behaviour of mount_unionfs with executables X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2005 08:44:57 -0000 --+pHx0qQiF2pBVqBT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sat, 02.07.2005 at 14:40:48 +0200, Dario Freni wrote: > Hi everybody, I'm working on rewriting FreeSBIE toolkit for my Summer > of Code project. Before that, I'm trying to adapt actual scripts with > latest -current (expecially ppc). I noticed a weird behaviour of > unionfs either in i386 and ppc. Under FreeSBIE, we use to mount memory > file systems over compressed ones via unionfs. Under -current, > whenever I recall an rwx file, it is correctly executed the first > time, then it is copied to the upper layer (why? I haven't modified it > yet) with wrong permission, so it is unexecutable. I did something like this a year ago, when I first heard about FreeSBIE. (Together with a completely different way of installing packages). I mounted one big md on /etc, /usr/local/etc, /var and /home. That way you don't need to worry about binaries. Similarly, if someone fills up the md, tough luck. I guess the file is copied to the upper layer, because of atime changes, you want to disable them as well. I don't know the current status wrt to FreeSBIE, but you should really use ISO9600 as the root FS, that should make sure no atime updates are tried. > I'm also afraid that copying files to the upper layer also when > they're not modified could fill up our mfs entirely. I'm almost sure > there's a totally different behaviour under RELENG_5, as we haven't > encountered such problems. I made it so, that one could specify a large file on a FAT32 partition, that file then got attached to /dev/md0 and unionfs-mounted. That way one could have a 2 GB md, which should be enough for everybody. This also gives persistent configurations across reboot. That, coupled with a script, looking for that special file on every partition (USB-Sticks, for example) on boot-up made it very convenient to work with. I recon the Knoppix guys have now adapted a similar scheme ... Ulrich Spoerlein --=20 PGP Key ID: F0DB9F44 Encrypted mail welcome! Fingerprint: F1CE D062 0CA9 ADE3 349B 2FE8 980A C6B5 F0DB 9F44 Ok, which part of "Ph'nglui mglw'nafh Cthulhu R'lyeh wgah'nagl fhtagn." didn't you understand? --+pHx0qQiF2pBVqBT Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (FreeBSD) iD8DBQFCyPcFmArGtfDbn0QRAhsSAJ9YUWw3+sHIkVBu0AWUG5OJ40dzjQCfWVXu 1nQNPyrJqUCboc+0TuIcqiA= =J8uR -----END PGP SIGNATURE----- --+pHx0qQiF2pBVqBT--