Skip to content

Commit

Permalink
ioctl_ficlone02: Fill range to avoid EINVAL
Browse files Browse the repository at this point in the history
To avoid ioctl(..., FICLONERANGE, ...) on filesystem which supports it
failing with EINVAL (now it succeeds as the first test, which is less
confusing).

Link: https://lore.kernel.org/ltp/ZqeFKkUbhlikEfNS@yuki/
Suggested-by: Cyril Hrubis <[email protected]>
Signed-off-by: Petr Vorel <[email protected]>
  • Loading branch information
pevik committed Jul 29, 2024
1 parent b3d9561 commit 9c63908
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions testcases/kernel/syscalls/ioctl/ioctl_ficlone02.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ static void setup(void)

SAFE_STAT(MNTPOINT, &sb);

tst_fill_file(SRCPATH, 0x00, sb.st_blksize, 1);

clone_range->src_offset = 0;
clone_range->src_length = sb.st_blksize;
clone_range->dest_offset = 0;
Expand Down

0 comments on commit 9c63908

Please sign in to comment.