Lines Matching defs:vol

838  * @vol:	ntfs volume on which the attribute resides
866 errno_t ntfs_mapping_pairs_decompress(ntfs_volume *vol, const ATTR_RECORD *a,
883 ntfs_error(vol->mp, "Invalid arguments.");
893 ntfs_error(vol->mp, "Corrupt attribute.");
947 ntfs_error(vol->mp, "Missing length entry in mapping "
956 ntfs_error(vol->mp, "Invalid length in mapping pairs "
992 if (vol->major_ver < 3) {
994 ntfs_error(vol->mp, "lcn delta == -1");
996 ntfs_error(vol->mp, "lcn == -1");
1001 ntfs_error(vol->mp, "Invalid LCN < -1 in "
1027 vol->cluster_size_mask) >>
1028 vol->cluster_size_shift) - 1;
1044 ntfs_error(vol->mp, "Corrupt attribute. deltaxcn = "
1079 ntfs_error(vol->mp, "Failed to merge runlists.");
1085 ntfs_error(vol->mp, "Corrupt mapping pairs array in non-resident "
1228 * @vol: ntfs volume (needed for the ntfs version)
1256 errno_t ntfs_get_size_for_mapping_pairs(const ntfs_volume *vol,
1314 if (rl->lcn >= 0 || vol->major_ver < 3) {
1349 if (rl->lcn >= 0 || vol->major_ver < 3) {
1419 * @vol: ntfs volume (needed for the ntfs version)
1455 errno_t ntfs_mapping_pairs_build(const ntfs_volume *vol, s8 *dst,
1528 if (rl->lcn >= 0 || vol->major_ver < 3) {
1579 if (rl->lcn >= 0 || vol->major_ver < 3) {
1662 * @vol: ntfs volume (needed for error output)
1684 errno_t ntfs_rl_truncate_nolock(const ntfs_volume *vol,
1720 ntfs_error(vol->mp, "Not enough memory to allocate "
1785 ntfs_error(vol->mp, "Not enough "
1816 * @vol: ntfs volume (needed for error output)
1835 errno_t ntfs_rl_punch_nolock(const ntfs_volume *vol, ntfs_runlist *runlist,
2094 ntfs_error(vol->mp, "Failed to extend runlist buffer (error %d).", err);
2100 * @vol: ntfs volume from which to read
2121 errno_t ntfs_rl_read(ntfs_volume *vol, ntfs_runlist *runlist, u8 *dst,
2126 vnode_t dev_vn = vol->dev_vn;
2129 unsigned block_size = vol->sector_size;
2130 const u8 cluster_to_block_shift = vol->cluster_size_shift -
2131 vol->sector_size_shift;
2134 if (!vol || !runlist || !dst || size <= 0 || initialized_size < 0 ||
2136 ntfs_error(vol->mp, "Received invalid arguments.");
2146 ntfs_error(vol->mp, "Cannot read attribute list since runlist "
2160 ntfs_error(vol->mp, "Runlist is invalid, not mapped, "
2176 ntfs_error(vol->mp, "buf_meta_bread() failed "
2183 ntfs_error(vol->mp, "buf_map() failed (error "
2194 ntfs_error(vol->mp, "buf_unmap() failed "
2219 * @vol: ntfs volume to which to write
2244 errno_t ntfs_rl_write(ntfs_volume *vol, u8 *src, const s64 size,
2250 vnode_t dev_vn = vol->dev_vn;
2256 if (!vol || !src || size <= 0 || !runlist || !runlist->elements ||
2258 ntfs_error(vol->mp, "Received invalid arguments.");
2267 block_size = vol->sector_size;
2268 block_shift = vol->sector_size_shift;
2269 cluster_shift = vol->cluster_size_shift;
2275 delta = ofs & vol->sector_size_mask;
2281 vcn_ofs = ofs & vol->cluster_size_mask;
2313 ntfs_error(vol->mp, "buf_map() failed (error "
2334 ntfs_error(vol->mp, "buf_unmap() failed "
2338 ntfs_error(vol->mp, "buf_bwrite() failed "
2357 ntfs_error(vol->mp, "Failed to update attribute list attribute on "
2360 NVolSetErrors(vol);
2366 * @vol: ntfs volume to which to write
2381 errno_t ntfs_rl_set(ntfs_volume *vol, const ntfs_rl_element *rl, const u8 val)
2384 vnode_t dev_vn = vol->dev_vn;
2389 if (!vol || !rl || !rl->length) {
2390 ntfs_error(vol->mp, "Received invalid arguments.");
2393 block_size = vol->sector_size;
2394 shift = vol->cluster_size_shift - vol->sector_size_shift;
2407 ntfs_error(vol->mp, "Invalid LCN (%lld) in runlist.",
2428 ntfs_error(vol->mp, "buf_map() failed (error "
2440 ntfs_error(vol->mp, "buf_unmap() failed "
2444 ntfs_error(vol->mp, "buf_bwrite() failed "