From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jordi Pujol Subject: Re: overlayfs.v8 testing on a Live system Date: Thu, 21 Apr 2011 10:15:55 +0200 Message-ID: <201104211015.55370.jordipujolp@gmail.com> References: <201104201143.00241.jordipujolp@gmail.com> <87y635m4cc.fsf@tucsk.pomaz.szeredi.hu> Mime-Version: 1.0 Content-Type: Multipart/Mixed; boundary="Boundary-00=_7e+rNqGaP/VHQHV" Cc: Miklos Szeredi To: linux-fsdevel@vger.kernel.org Return-path: Received: from mail-ww0-f44.google.com ([74.125.82.44]:49211 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753533Ab1DUIP7 (ORCPT ); Thu, 21 Apr 2011 04:15:59 -0400 Received: by wwa36 with SMTP id 36so1796457wwa.1 for ; Thu, 21 Apr 2011 01:15:58 -0700 (PDT) In-Reply-To: <87y635m4cc.fsf@tucsk.pomaz.szeredi.hu> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: --Boundary-00=_7e+rNqGaP/VHQHV Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable A Dimecres 20 Abril 2011 15:37:07, v=E0reu escriure: > Hmm, can you please send a minimal script and necessary files with which > I can reproduce this? Here is attached an script that tries to reproduce that, but the problem do= es=20 not happen, some conditions are not met, I will continue studying what is t= he=20 situation to cause this problem, Thanks, Jordi Pujol Live never ending Tale GNU/Linux Live forever! http://livenet.selfip.com --Boundary-00=_7e+rNqGaP/VHQHV Content-Type: application/x-shellscript; name="overlayfs-test.sh" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="overlayfs-test.sh" #!/bin/sh set -e _append() { local g="${1}" local n="${2}" local i i=1 while [ ${i} -le ${n} ]; do sed -i -e '$ s/^\(.*\)$/\1'${i}'/' "${g}" sed -i -e '$ s/^\(.*\)$/\1'${i}'/' "${g}" sed -i -e '$ s/^\(.*\)$/\1\n'${i}'x\1/' "${g}" i=$((${i}+1)) done : } f="$(basename "$(mktemp --tmpdir="$(pwd)" "f-XXX")")" echo "filename ${f}" u="u-${f#*-}" l="l-${f#*-}" r="r-${f#*-}" c="${1:-"10"}" [ ${c} -ge 10 ] || c=10 echo "0" > "${f}" mkdir "${u}" mkdir "${l}" mkdir "${r}" _append "${f}" "10" cp "${f}" "${l}/${f}" mount -t overlayfs -o upperdir=${u},lowerdir=${l} overlayfs ${r} _append "${f}" "${c}" _append "${r}/${f}" "${c}" diff "${f}" "${r}/${f}" umount ${r} echo "done." : --Boundary-00=_7e+rNqGaP/VHQHV--