Re: FSEventsCopyUUIDForDevice() occasionally changes value

2015-11-20 Thread James Bucanek
Dominic Giampaolo November 20, 2015 at 5:09 AM It's expected if something causes fseventsd to lose track of events and thus reset its history. The main reasons fseventsd can lose track of events is if the system crashes or reboots unexpectedly. An event overrun or

Re: Unravelling the mysteries of F_PREALLOCATE (on APFS and HFS+)

2017-12-14 Thread James Bucanek
Dominic Giampaolo December 14, 2017 at 9:17 AM Which brings me to my first (and biggest) question: F_PEOFPOSMODE allocates from the "physical" end of file. What is the physical end of file? Is is the current size of the file as reported by stat() in the

Re: Unravelling the mysteries of F_PREALLOCATE (about holes)

2017-12-15 Thread James Bucanek
Changing the subject, because this is really a separate question... Dominic Giampaolo December 14, 2017 at 9:17 AM Finally, I've got some new questions as I explore using "holes" and sparse files. Specifically, if I punch a "hole" in a files with F_PUNCHHOLE, can

Unravelling the mysteries of F_PREALLOCATE (on APFS and HFS+)

2017-12-13 Thread James Bucanek
EALLOCATE to re-allocate those blocks before I write into them? If so, how would one determine the offset of a hole when setting up fst_posmode, fst_offset, and fst_length? I'm just hoping there are fcntl() and/or APFS gurus out there that know the answers to these questions. James Bucanek __

How to use mandatory file locking on afpfs volumes

2018-02-26 Thread James Bucanek
More annoying questions... How does one use "AFP-style mandatory file locking" in macOS (10.9...current)? I'm trying to implement file locking/coordination across various filesystems and servers. The man page for getattrlist() includes the following filesystem capability test:

Re: How to use mandatory file locking on afpfs volumes

2018-03-13 Thread James Bucanek
functionality of open(2) on that volume would appear to directly contradict that capability test. Can anyone explain this? Thanks! James James Bucanek <mailto:subscri...@gloaming.com> February 26, 2018 at 1:11 PM More annoying questions... How does one use "AFP-style mandatory file

Re: How to use mandatory file locking on afpfs volumes

2018-04-03 Thread James Bucanek
March 28, 2018 at 5:15 PM Were you testing this on two different machines simultaneously? The point of AFP locking is to protect the file contents from simultaneous access on different machines, not within the same machine. -Kevin James Bucanek <mailto:subscri...@gloaming.com> Marc

Re: How to use mandatory file locking on afpfs volumes

2018-04-03 Thread James Bucanek
Vivek Verma April 3, 2018 at 11:46 AM Advisory locking as defined by POSIX is bunch of sentences thrown together which make no sense when you actually try to use it in a real world application. AFP's locking protocol

Exploring APFS volume groups in Catalina

2019-09-10 Thread James Bucanek via Filesystem-dev
, more definitive, method for determining the relationship of a system/data volume pair? Thanks, James Bucanek ___ Do not post admin requests to the list. They will be ignored. Filesystem-dev mailing list (Filesystem-dev@lists.apple.com) Help

Some questions about firm links

2019-09-10 Thread James Bucanek via Filesystem-dev
ructures that user-land apps cannot plumb. This question is just idle curiosity; I don't currently have any real need to read firm links. Cheers, James Bucanek ___ Do not post admin requests to the list. They will be ignored. Filesystem-dev mailing list