[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [RFC PATCH] truncate: add --data-size (-d) option
From: |
Pádraig Brady |
Subject: |
Re: [RFC PATCH] truncate: add --data-size (-d) option |
Date: |
Sat, 3 Nov 2018 05:34:45 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 |
On 02/11/18 10:42, Emil Karlson wrote:
> From: Emil Karlson <address@hidden>
>
> Add a new option to truncate to the smallest size that contains all its
> extents
> ie. truncate to the offset of the end of the last extent in the file. This may
> be convenient when passing very large images with long sparse tails to systems
> that do not handle sparse images reasonably and do not need the sparse tails.
Thanks for the patch.
I'm inclined to think that this functionality is best placed in fallocate(1),
which has related functions for modifying extents and apparent size.
cheers,
Pádraig