I am working out APIs which allow turning a range of a file into sparse. The link to the branch is here: https://github.com/khng300/freebsd/tree/khng/current/fdealloc . The draft describing the current shape of the API is here: https://hackmd.io/xQolDBDMQKq5_0n_Ej1WfQ?view Thanks, Ka Ho