Lines Matching refs:fs_blk_device

115                                     std::string *fs_blk_device,  in GetFsBlockDeviceAndType()  argument
126 *fs_blk_device = mnt->mnt_fsname; in GetFsBlockDeviceAndType()
140 static bool GetFilesystemUuid(const std::string &fs_blk_device, in GetFilesystemUuid() argument
144 open(fs_blk_device.c_str(), O_RDONLY | O_CLOEXEC)); in GetFilesystemUuid()
146 ADD_FAILURE() << "Failed to open fs block device " << fs_blk_device in GetFilesystemUuid()
155 ADD_FAILURE() << "Error reading ext4 superblock from " << fs_blk_device in GetFilesystemUuid()
160 ADD_FAILURE() << "Failed to find ext4 superblock on " << fs_blk_device; in GetFilesystemUuid()
171 ADD_FAILURE() << "Error reading f2fs superblock from " << fs_blk_device in GetFilesystemUuid()
176 ADD_FAILURE() << "Failed to find f2fs superblock on " << fs_blk_device; in GetFilesystemUuid()
182 << fs_blk_device << Errno(); in GetFilesystemUuid()
205 static bool GetRawBlockDevice(const std::string &fs_blk_device, in GetRawBlockDevice() argument
209 if (!dm.IsDmBlockDevice(fs_blk_device)) { in GetRawBlockDevice()
211 << fs_blk_device in GetRawBlockDevice()
213 *raw_blk_device = fs_blk_device; in GetRawBlockDevice()
217 dm.GetDmDeviceNameByPath(fs_blk_device); in GetRawBlockDevice()
220 << fs_blk_device; in GetRawBlockDevice()
230 GTEST_LOG_(INFO) << fs_blk_device in GetRawBlockDevice()
233 *raw_blk_device = fs_blk_device; in GetRawBlockDevice()
238 GTEST_LOG_(INFO) << fs_blk_device << " is a dm-" << target_type in GetRawBlockDevice()
241 *raw_blk_device = fs_blk_device; in GetRawBlockDevice()
245 dm.GetParentBlockDeviceByPath(fs_blk_device); in GetRawBlockDevice()
256 if (!GetFsBlockDeviceAndType(mountpoint, &info->fs_blk_device, &info->type)) in GetFilesystemInfo()
259 if (!GetFilesystemUuid(info->fs_blk_device, info->type, &info->uuid)) in GetFilesystemInfo()
262 if (!GetRawBlockDevice(info->fs_blk_device, &info->raw_blk_device)) in GetFilesystemInfo()
265 GTEST_LOG_(INFO) << info->fs_blk_device << " is mounted on " << mountpoint in GetFilesystemInfo()