blob: 49f2c3f402d29ee7a93074277df4dd9d0ec7832e [file] [log] [blame]
Chris Masone5e06f182010-03-23 08:29:52 -07001# Copyright (c) 2010 The Chromium OS Authors. All rights reserved.
2# Use of this source code is governed by a BSD-style license that can be
3# found in the LICENSE file.
4
5import logging, os, utils, time
6from autotest_lib.client.bin import test
7from autotest_lib.client.common_lib import error
8
9def is_mounted(device = '/dev/mapper/cryptohome',
Chris Masone6027ecc2010-03-23 10:19:49 -070010 expected_mountpt = '/home/chronos/user',
11 allow_fail = False):
12 mount_line = utils.system_output('/bin/mount | grep %s' % expected_mountpt,
13 ignore_status = allow_fail)
14 dev = (mount_line.split())[0]
15 return device == dev