Lines Matching refs:vol

123 static void err_exit(ntfs_volume *vol, const char *fmt, ...)
132 if (vol && ntfs_umount(vol, 0))
426 static void free_common(ntfs_volume *vol, runlist_element *brl, s64 blth,
435 if (ntfs_bitmap_clear_run(vol->lcnbmp_na,
456 ntfs_volume *vol;
458 vol = na->ni->vol;
467 free_common(vol, brl, brl->length, grl,
474 free_common(vol, brl, brl->length, grl,
492 ntfs_volume *vol;
501 vol = na->ni->vol;
502 buf = (char*)malloc(vol->cluster_size);
504 memset(buf, 0, vol->cluster_size);
506 pos = zrl->vcn << vol->cluster_size_bits;
511 zeroed = ntfs_pwrite(vol->dev,
513 << vol->cluster_size_bits,
514 vol->cluster_size, buf);
515 if (zeroed != vol->cluster_size) {
522 pos += vol->cluster_size;
525 pos = zrl->vcn << vol->cluster_size_bits;
543 ntfs_volume *vol;
547 vol = na->ni->vol;
549 if ((rl->vcn << vol->cluster_size_bits) < na->initialized_size) {
591 ntfs_volume *vol;
605 vol = na->ni->vol;
607 from_vcn = alloc_offs >> vol->cluster_size_bits;
608 end_vcn = (alloc_offs + alloc_len + vol->cluster_size - 1)
609 >> vol->cluster_size_bits;
639 rlc = ntfs_cluster_alloc(vol, from_hole, need,
645 need << vol->cluster_size_bits);
820 ntfs_volume *vol;
825 vol = (ntfs_volume*)NULL;
857 vol = ntfs_mount(dev_name, ul);
858 if (!vol)
859 err_exit(vol, "Failed to mount %s: %s\n", dev_name,
862 if ((vol->flags & VOLUME_IS_DIRTY) && !opts.force)
863 err_exit(vol, "Volume is dirty, please run chkdsk.\n");
865 if (ntfs_volume_get_free_space(vol))
866 err_exit(vol, "Failed to get free clusters %s: %s\n",
873 ni = ntfs_pathname_to_inode(vol, NULL, unix_name);
878 ni = ntfs_pathname_to_inode(vol, NULL, file_name);
881 err_exit(vol, "Failed to open file \"%s\": %s\n", file_name,
889 err_exit(vol, "Failed to close inode \"%s\" : %s\n", file_name,
894 err = ntfs_umount(vol, 0);
895 vol = (ntfs_volume*)NULL;