From 67ae4b965170696845a5f6ff85abc4784b89d4ee Mon Sep 17 00:00:00 2001 From: "cantab.net!aia21" Date: Thu, 26 Dec 2002 20:36:52 +0000 Subject: [PATCH] Update comments for ntfs_cluster_free(). (Logical change 1.58) --- libntfs/lcnalloc.c | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/libntfs/lcnalloc.c b/libntfs/lcnalloc.c index 043dea09..5bea444f 100644 --- a/libntfs/lcnalloc.c +++ b/libntfs/lcnalloc.c @@ -62,12 +62,16 @@ runlist *ntfs_cluster_alloc(ntfs_volume *vol, s64 count, LCN start_lcn) * @vol: mounted ntfs volume on which to free the clusters * @rl: runlist describing the clusters to free * @start_vcn: starting relative vcn into @rl at which to free the clusters - * @count: number of clusters to free + * @count: number of clusters to free or -1 for all clusters * - * Allocate @count clusters starting at cluster @start_lcn or at the current - * allocator position if @start_lcn is -1, from the mounted ntfs volume @vol. + * Free @count clusters starting at the cluster @start_vcn in the runlist @rl + * from the mounted ntfs volume @vol. * - * On success return 0 and -1 on error with errno set to the error code. + * If @count is -1, all clusters from @start_vcn to the end of the runlist + * are deallocated. + * + * On success return the number of deallocated clusters (not counting sparse + * clusters) and on error return -1 with errno set to the error code. */ int ntfs_cluster_free(ntfs_volume *vol, runlist *rl, VCN start_vcn, s64 count) {