Skip to content

Commit eb17b50

Browse files
committed
Upstream: use INO_XNUTOZFS in zfs_ids_to_path
1 parent aab2969 commit eb17b50

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cmd/zfs_ids_to_path/zfs_ids_to_path.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@
2929
#include <stdio.h>
3030
#include <stdlib.h>
3131
#include <errno.h>
32+
#ifdef __APPLE__
33+
#include <sys/zfs_context.h>
34+
#endif
3235

3336
libzfs_handle_t *g_zfs;
3437

@@ -81,6 +84,10 @@ main(int argc, char **argv)
8184
return (5);
8285
}
8386

87+
#ifdef __APPLE__
88+
object = INO_XNUTOZFS(object, 2);
89+
#endif
90+
8491
char pathname[PATH_MAX * 2];
8592
if (verbose) {
8693
zpool_obj_to_path_ds(pool, objset, object, pathname,

0 commit comments

Comments
 (0)