Enable zhack to work properly with 4k sector size disks

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Paul Dagnelie <paul.dagnelie@klarasystems.com>
Closes #17576
This commit is contained in:
Paul Dagnelie
2025-09-09 12:09:35 -07:00
committed by Tony Hutter
parent 411249498e
commit a1d839eddd
7 changed files with 19 additions and 9 deletions
+2 -1
View File
@@ -115,8 +115,9 @@ zfs_file_write(zfs_file_t *fp, const void *buf, size_t count, ssize_t *resid)
*/
int
zfs_file_pwrite(zfs_file_t *fp, const void *buf, size_t count, loff_t off,
ssize_t *resid)
uint8_t ashift, ssize_t *resid)
{
(void) ashift;
ssize_t rc;
rc = kernel_write(fp, buf, count, &off);