Lines Matching refs:fs_blk_device

145                                     std::string *fs_blk_device,  in GetFsBlockDeviceAndType()  argument
156 *fs_blk_device = mnt->mnt_fsname; in GetFsBlockDeviceAndType()
170 static bool GetFilesystemUuid(const std::string &fs_blk_device, in GetFilesystemUuid() argument
174 open(fs_blk_device.c_str(), O_RDONLY | O_CLOEXEC)); in GetFilesystemUuid()
176 ADD_FAILURE() << "Failed to open fs block device " << fs_blk_device in GetFilesystemUuid()
185 ADD_FAILURE() << "Error reading ext4 superblock from " << fs_blk_device in GetFilesystemUuid()
190 ADD_FAILURE() << "Failed to find ext4 superblock on " << fs_blk_device; in GetFilesystemUuid()
201 ADD_FAILURE() << "Error reading f2fs superblock from " << fs_blk_device in GetFilesystemUuid()
206 ADD_FAILURE() << "Failed to find f2fs superblock on " << fs_blk_device; in GetFilesystemUuid()
212 << fs_blk_device << Errno(); in GetFilesystemUuid()
235 static bool GetRawBlockDevice(const std::string &fs_blk_device, in GetRawBlockDevice() argument
239 if (!dm.IsDmBlockDevice(fs_blk_device)) { in GetRawBlockDevice()
241 << fs_blk_device in GetRawBlockDevice()
243 *raw_blk_device = fs_blk_device; in GetRawBlockDevice()
247 dm.GetDmDeviceNameByPath(fs_blk_device); in GetRawBlockDevice()
250 << fs_blk_device; in GetRawBlockDevice()
260 GTEST_LOG_(INFO) << fs_blk_device in GetRawBlockDevice()
263 *raw_blk_device = fs_blk_device; in GetRawBlockDevice()
268 GTEST_LOG_(INFO) << fs_blk_device << " is a dm-" << target_type in GetRawBlockDevice()
271 *raw_blk_device = fs_blk_device; in GetRawBlockDevice()
275 dm.GetParentBlockDeviceByPath(fs_blk_device); in GetRawBlockDevice()
286 if (!GetFsBlockDeviceAndType(mountpoint, &info->fs_blk_device, &info->type)) in GetFilesystemInfo()
289 if (!GetFilesystemUuid(info->fs_blk_device, info->type, &info->uuid)) in GetFilesystemInfo()
292 if (!GetRawBlockDevice(info->fs_blk_device, &info->raw_blk_device)) in GetFilesystemInfo()
295 GTEST_LOG_(INFO) << info->fs_blk_device << " is mounted on " << mountpoint in GetFilesystemInfo()