• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/ntfs-3g-2009.3.8/libntfs-3g/

Lines Matching defs:newsize

3807 static int ntfs_resident_attr_resize(ntfs_attr *na, const s64 newsize);
3812 * @newsize: new size (in bytes) to which to resize the attribute
3814 * Change the size of a resident, open ntfs attribute @na to @newsize bytes.
3822 * ERANGE - @newsize is not valid for the attribute type of @na.
3825 static int ntfs_resident_attr_resize_i(ntfs_attr *na, const s64 newsize)
3834 (long long)newsize);
3849 * sizes against @newsize and fail if @newsize is out of bounds.
3851 if (ntfs_attr_size_bounds_check(vol, na->type, newsize) < 0) {
3859 * If @newsize is bigger than the mft record we need to make the
3863 if (newsize < vol->mft_record_size) {
3866 newsize))) {
3868 na->data_size = na->initialized_size = newsize;
3869 na->allocated_size = (newsize + 7) & ~7;
3892 return ntfs_attr_truncate(na, newsize);
3932 return ntfs_resident_attr_resize(na, newsize);
3952 return ntfs_resident_attr_resize(na, newsize);
3991 return ntfs_resident_attr_resize(na, newsize);
4012 return ntfs_resident_attr_resize(na, newsize);
4028 static int ntfs_resident_attr_resize(ntfs_attr *na, const s64 newsize)
4033 ret = ntfs_resident_attr_resize_i(na, newsize);
4649 * @newsize: new size (in bytes) to which to shrink the attribute
4651 * Reduce the size of a non-resident, open ntfs attribute @na to @newsize bytes.
4656 * ERANGE - @newsize is not valid for the attribute type of @na.
4658 static int ntfs_non_resident_attr_shrink(ntfs_attr *na, const s64 newsize)
4667 na->ni->mft_no, na->type, (long long)newsize);
4673 * against @newsize and fail if @newsize is too small.
4675 if (ntfs_attr_size_bounds_check(vol, na->type, newsize) < 0) {
4685 first_free_vcn = (newsize + vol->cluster_size - 1) >>
4745 na->data_size = newsize;
4746 ctx->attr->data_size = cpu_to_sle64(newsize);
4747 if (newsize < na->initialized_size) {
4748 na->initialized_size = newsize;
4749 ctx->attr->initialized_size = cpu_to_sle64(newsize);
4758 if (!newsize) {
4781 * @newsize: new size (in bytes) to which to expand the attribute
4783 * Expand the size of a non-resident, open ntfs attribute @na to @newsize bytes,
4789 * ERANGE - @newsize is not valid for the attribute type of @na.
4792 static int ntfs_non_resident_attr_expand_i(ntfs_attr *na, const s64 newsize)
4804 (long long)newsize, (long long)na->data_size);
4810 * against @newsize and fail if @newsize is too big.
4812 if (ntfs_attr_size_bounds_check(vol, na->type, newsize) < 0) {
4822 first_free_vcn = (newsize + vol->cluster_size - 1) >>
4940 na->data_size = newsize;
4941 ctx->attr->data_size = cpu_to_sle64(newsize);
4987 static int ntfs_non_resident_attr_expand(ntfs_attr *na, const s64 newsize)
4992 ret = ntfs_non_resident_attr_expand_i(na, newsize);
5000 * @newsize: new size (in bytes) to which to resize the attribute
5002 * Change the size of an open ntfs attribute @na to @newsize bytes. If the
5017 int ntfs_attr_truncate(ntfs_attr *na, const s64 newsize)
5021 if (!na || newsize < 0 ||
5030 (long long)newsize);
5032 if (na->data_size == newsize) {
5055 if (newsize > na->data_size)
5056 ret = ntfs_non_resident_attr_expand(na, newsize);
5058 ret = ntfs_non_resident_attr_shrink(na, newsize);
5060 ret = ntfs_resident_attr_resize(na, newsize);