site_archiver(a)lists.apple.com
Delivered-To: darwin-dev(a)lists.apple.com
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=vRUEWo KcLrbXwtyPFMcu3Gx+iH44LrTgonTJ0gK06LM=; b=ScSqOupXwZ5ov64s2baGZd NleD3pplUYmBCyzEx7nds1fawnidQqB483k+YjuEhwaidobAxwQlEDlhRVH4JKPt le111vChAjZiAwt6SMcSgnlAa6aWOYH9DRUJnYlpbIWIGE7RSl1z31WFLncPW6lW /CUVx8gyjlJU1qVRUgJ5pg2iYrfX/20DsNYtrKJfxMkWaOHgmcMEUr5oGklqTgTz fNFKOdQPSxfWI87CXJ5uTITgegUbZlQUlrqI9wLtS/5TJgvISTcAkL3OwSLXdrFD jKLqeWv8H+PCIPgdl/IZo9yAmzoHz+7F96kbDiGQ/g5Zk5uuEJ56LERIs98mi52A ==
> On Jan 21, 2019, at 5:19 PM, Chris Sarcone <sarcone(a)apple.com> wrote:
>
> No, but you can file a Radar bug asking for the feature and we can evaluate
> it for inclusion.
OK, filed as rdar://47450388.
(The Bug Reporter site didn’t have any category for “Filesystem”, “Core OS” or
“Kernel”, so I chose “Something not listed here”. I’m smiling to myself at the
irony that operating systems have grown to such a degree that something as
fundamental as the filesystem no longer merits a place in a feature list!)
—Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (Darwin-dev(a)lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.ap…
This email sent to site_archiver(a)lists.apple.com
site_archiver(a)lists.apple.com
Delivered-To: darwin-dev(a)lists.apple.com
Hi Jens —
> On Jan 20, 2019, at 3:14 PM, Jens Alfke <jens(a)mooseyard.com> wrote:
>
> I’m looking into sparse-file operations in APFS. I see I can use fcntl to
> preallocate space and to punch holes in a file. But I don’t see a command to
> remove a byte range from a file without leaving a hole, equivalent to the
> FALLOC_FL_COLLAPSE_RANGE mode of Linux’s fallocate, described thus:
>
>> Specifying the FALLOC_FL_COLLAPSE_RANGE flag (available since Linux 3.15) in
>> mode removes a byte range from a file, without leaving a hole. The byte
>> range to be collapsed starts at offset and continues for len bytes. At the
>> completion of the operation, the contents of the file starting at the
>> location offset+len will be appended at the location offset, and the file
>> will be len bytes smaller.
>
> Is there such an operation in Darwin, with an APFS filesystem?
No, but you can file a Radar bug asking for the feature and we can evaluate it
for inclusion.
Thanks,
— Chris
------------------
19191 Vallco Parkway
M/S 77-1SSG
Cupertino CA 95014
phone: (408) 974-4033
fax: (408) 862-7577
email: sarcone(a)apple.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (Darwin-dev(a)lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.ap…
This email sent to site_archiver(a)lists.apple.com
site_archiver(a)lists.apple.com
Delivered-To: darwin-dev(a)lists.apple.com
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:message-id:mime-version:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm1; bh=4JTrnB R4A91rtrCRZsvjBS8CARgaSa7cpljk/bPgHlk=; b=YgJ3kkH4HDqipT84FAelLu ZRhS1KiGIgIHRYIoxfMpxen2deDXFmZUBeM5HnBVnDDH5s12w7PFd7SUliEs/bBQ 76P0AyyEmi79g6CxeVorwMjea/irSEY15enYRyzTruSQdlez66ft2YghokjBcN58 IClV4SVlCGJke6gGE6iIF9nFZvnZEP/PCQLFpslkPS+T7p7VakvWW9F0dQfXs4K8 8zCZzZ4j5z+NGAnY+Ycp8vf5QTvlMZYPxmYzYUYCY4oOCF3I4J0HXn+N/tYICsqq V6MbVNKaaAv8HDMfVSdHuIx6DMicsZpqxF1SbpsI05Qz9o/R3Gw8YVNGTknLqkWw ==
I’m looking into sparse-file operations in APFS. I see I can use fcntl to
preallocate space and to punch holes in a file. But I don’t see a command to
remove a byte range from a file without leaving a hole, equivalent to the
FALLOC_FL_COLLAPSE_RANGE mode of Linux’s fallocate, described thus:
> Specifying the FALLOC_FL_COLLAPSE_RANGE flag (available since Linux 3.15) in
> mode removes a byte range from a file, without leaving a hole. The byte range
> to be collapsed starts at offset and continues for len bytes. At the
> completion of the operation, the contents of the file starting at the
> location offset+len will be appended at the location offset, and the file
> will be len bytes smaller.
Is there such an operation in Darwin, with an APFS filesystem?
—Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (Darwin-dev(a)lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.ap…
This email sent to site_archiver(a)lists.apple.com