Changeset View
Changeset View
Standalone View
Standalone View
sys/compat/linux/linux_file.c
Show First 20 Lines • Show All 1,641 Lines • ▼ Show 20 Lines | linux_fallocate(struct thread *td, struct linux_fallocate_args *args) | ||||
/* | /* | ||||
* We emulate only posix_fallocate system call for which | * We emulate only posix_fallocate system call for which | ||||
* mode should be 0. | * mode should be 0. | ||||
*/ | */ | ||||
if (args->mode != 0) | if (args->mode != 0) | ||||
return (ENOSYS); | return (ENOSYS); | ||||
return (kern_posix_fallocate(td, args->fd, args->offset, | return (kern_fallocate(td, args->fd, 0, args->offset, args->len)); | ||||
args->len)); | |||||
} | } |