diff options
author | Anton Altaparmakov <aia21@cantab.net> | 2005-06-25 12:15:36 -0400 |
---|---|---|
committer | Anton Altaparmakov <aia21@cantab.net> | 2005-06-25 12:15:36 -0400 |
commit | fa3be92317c4ae34edcf5274e8bbeff181e20b7a (patch) | |
tree | 84ae4ace6c891aa95b804950283e1f8f3e46c730 /fs/ntfs/runlist.h | |
parent | 1d58b27b8d77ecb816cfa8f846b78c845675eb89 (diff) |
NTFS: Add an extra parameter @last_vcn to ntfs_get_size_for_mapping_pairs()
and ntfs_mapping_pairs_build() to allow the runlist encoding to be
partial which is desirable when filling holes in sparse attributes.
Update all callers.
Signed-off-by: Anton Altaparmakov <aia21@cantab.net>
Diffstat (limited to 'fs/ntfs/runlist.h')
-rw-r--r-- | fs/ntfs/runlist.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/fs/ntfs/runlist.h b/fs/ntfs/runlist.h index cf5c1b44bea8..aa0ee6540e7c 100644 --- a/fs/ntfs/runlist.h +++ b/fs/ntfs/runlist.h | |||
@@ -84,11 +84,12 @@ extern runlist_element *ntfs_rl_find_vcn_nolock(runlist_element *rl, | |||
84 | const VCN vcn); | 84 | const VCN vcn); |
85 | 85 | ||
86 | extern int ntfs_get_size_for_mapping_pairs(const ntfs_volume *vol, | 86 | extern int ntfs_get_size_for_mapping_pairs(const ntfs_volume *vol, |
87 | const runlist_element *rl, const VCN start_vcn); | 87 | const runlist_element *rl, const VCN first_vcn, |
88 | const VCN last_vcn); | ||
88 | 89 | ||
89 | extern int ntfs_mapping_pairs_build(const ntfs_volume *vol, s8 *dst, | 90 | extern int ntfs_mapping_pairs_build(const ntfs_volume *vol, s8 *dst, |
90 | const int dst_len, const runlist_element *rl, | 91 | const int dst_len, const runlist_element *rl, |
91 | const VCN start_vcn, VCN *const stop_vcn); | 92 | const VCN first_vcn, const VCN last_vcn, VCN *const stop_vcn); |
92 | 93 | ||
93 | extern int ntfs_rl_truncate_nolock(const ntfs_volume *vol, | 94 | extern int ntfs_rl_truncate_nolock(const ntfs_volume *vol, |
94 | runlist *const runlist, const s64 new_length); | 95 | runlist *const runlist, const s64 new_length); |