From: Ian Campbell <ian.campbell@citrix.com>
To: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: xen-devel@lists.xenproject.org
Subject: Re: [OSSTEST PATCH 5/6] ts-xen-build-prep: mkfs a new /home/osstest, don't resize2fs
Date: Thu, 14 May 2015 11:05:12 +0100 [thread overview]
Message-ID: <1431597912.13579.19.camel@citrix.com> (raw)
In-Reply-To: <1431515722-5016-6-git-send-email-ian.jackson@eu.citrix.com>
On Wed, 2015-05-13 at 12:15 +0100, Ian Jackson wrote:
> +sub replace_home () {
> + my $dir = '/home/osstest';
> + my $mapper = lv_dev_mapper($vg,$lvleaf);
> + my ($fstype,@opts) = qw(ext3 -m 0 -O sparse_super);
> + target_cmd_root($ho, <<END, 1000);
> + set -ex
> + if mount | sed -e 's/^[^ ].* on //; s/ .*//' | grep -F '$dir'; then
> + exit 0
> + fi
> + mkfs -t $fstype @opts $lv
> + mount $lv /mnt
> + rsync -aHx --numeric-ids $dir/. /mnt/.
> + rm -rf $dir
> + mkdir -m 2700 $dir
> + echo '$mapper $dir $fstype defaults 0 0' >>/etc/fstab
> + umount /mnt
> + mount $dir
This doesn't update /etc/fstab so in standalone mode (when a host may
share build and test duties) the reboots will cause the
old /home/osstest to reappear and then I'm not sure if this all does
what we want or not with the existing lv.
next prev parent reply other threads:[~2015-05-14 10:05 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-05-13 11:15 [OSSTEST PATCH 0/6] Use mkfs rather than resize2fs for build fs Ian Jackson
2015-05-13 11:15 ` [OSSTEST PATCH 1/6] Revert "ts-xen-build-prep: Run the backgrounded resize2fs with ionice" Ian Jackson
2015-05-13 11:15 ` [OSSTEST PATCH 2/6] ts-xen-build-prep: Abolish "background" parameter to lvextend Ian Jackson
2015-05-13 11:15 ` [OSSTEST PATCH 3/6] TestSupport: break out lv_dev_mapper Ian Jackson
2015-05-13 11:15 ` [OSSTEST PATCH 4/6] ts-xen-build-prep: Break out determine_vg_lv Ian Jackson
2015-05-13 11:15 ` [OSSTEST PATCH 5/6] ts-xen-build-prep: mkfs a new /home/osstest, don't resize2fs Ian Jackson
2015-05-14 10:05 ` Ian Campbell [this message]
2015-05-14 17:48 ` Ian Jackson
2015-05-15 8:54 ` Ian Campbell
2015-05-13 11:15 ` [OSSTEST PATCH 6/6] Revert "ts-logs-capture: collect resize2fs.log" Ian Jackson
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1431597912.13579.19.camel@citrix.com \
--to=ian.campbell@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.