Home
last modified time | relevance | path

Searched refs:truncate_fd (Results 1 – 1 of 1) sorted by relevance

/systemd-251/src/basic/
Dfs-util.c701 _cleanup_close_ int truncate_fd = -1; in unlinkat_deallocate() local
724 truncate_fd = openat(fd, name, O_WRONLY|O_CLOEXEC|O_NOCTTY|O_NOFOLLOW|O_NONBLOCK); in unlinkat_deallocate()
725 if (truncate_fd < 0) { in unlinkat_deallocate()
742 if (truncate_fd < 0) /* Don't have a file handle, can't do more ☹️ */ in unlinkat_deallocate()
745 if (fstat(truncate_fd, &st) < 0) { in unlinkat_deallocate()
770 n = write(truncate_fd, buffer, MIN(sizeof(buffer), left)); in unlinkat_deallocate()
781 if (fstat(truncate_fd, &st) < 0) { in unlinkat_deallocate()
797 if (fallocate(truncate_fd, FALLOC_FL_PUNCH_HOLE|FALLOC_FL_KEEP_SIZE, 0, l) >= 0) in unlinkat_deallocate()
801 if (ftruncate(truncate_fd, 0) < 0) { in unlinkat_deallocate()