From patchwork Thu Apr 7 21:21:23 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lucas Meneghel Rodrigues X-Patchwork-Id: 693931 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p388EDtH003611 for ; Fri, 8 Apr 2011 08:15:13 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757314Ab1DHBVs (ORCPT ); Thu, 7 Apr 2011 21:21:48 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24481 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757264Ab1DHBVr (ORCPT ); Thu, 7 Apr 2011 21:21:47 -0400 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p381LjhK000479 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 7 Apr 2011 21:21:46 -0400 Received: from autotest.virt.bos.redhat.com (autotest.virt.bos.redhat.com [10.16.72.47]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id p381Lik8019636; Thu, 7 Apr 2011 21:21:45 -0400 From: Lucas Meneghel Rodrigues To: autotest@test.kernel.org Cc: kvm@vger.kernel.org, Lucas Meneghel Rodrigues Subject: [PATCH 1/9] KVM test: unattended setup - mount the virtio win floppy as ro Date: Thu, 7 Apr 2011 17:21:23 -0400 Message-Id: <1302211283-30711-1-git-send-email-lmr@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Fri, 08 Apr 2011 08:15:13 +0000 (UTC) Signed-off-by: Lucas Meneghel Rodrigues --- client/tests/kvm/test_setup.py | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/client/tests/kvm/test_setup.py b/client/tests/kvm/test_setup.py index 1125aea..844108f 100644 --- a/client/tests/kvm/test_setup.py +++ b/client/tests/kvm/test_setup.py @@ -122,7 +122,8 @@ class FloppyDisk(Disk): pwd = os.getcwd() try: - m_cmd = 'mount -o loop %s %s' % (virtio_floppy, virtio_mount) + # We don't need to write stuff to the image, so mount ro + m_cmd = 'mount -o loop,ro %s %s' % (virtio_floppy, virtio_mount) utils.run(m_cmd) os.chdir(virtio_mount) path_list = glob.glob('*')