Index: head/usr.sbin/trim/trim.c =================================================================== --- head/usr.sbin/trim/trim.c +++ head/usr.sbin/trim/trim.c @@ -220,7 +220,7 @@ return (0); } - fd = opendev(path, O_WRONLY | O_DIRECT); + fd = opendev(path, O_RDWR | O_DIRECT); arg[0] = offset; arg[1] = length;