Lines Matching refs:dev
194 static BOOL verify_boot_sector(struct ntfs_device *dev, ntfs_volume *rawvol)
202 if (ntfs_pread(dev, 0, sizeof(buf), buf) != sizeof(buf)) {
228 rawvol->dev = dev;
248 * Assumes dev is open.
264 if (ntfs_pread(rawvol->dev, offset_to_file_record, size_of_file_record, buf) !=
816 struct ntfs_device *dev;
830 dev = ntfs_device_alloc(name, 0, &ntfs_device_default_io_ops, NULL);
831 if (!dev)
833 if (dev->d_ops->open(dev, O_RDONLY)) { //O_RDWR/O_RDONLY?
835 ntfs_device_free(dev);
839 if ((ret = verify_boot_sector(dev,&rawvol))) {
840 dev->d_ops->close(dev);
848 if (dev->d_ops->close(dev))
854 vol = ntfs_device_mount(dev, NTFS_MNT_RDONLY);
856 ntfs_device_free(dev);