takashi ary
2014-04-30 21:14:17 UTC
Hello,
When illumos fix Bug #4448 ?
I want to use this on OmniOS.
OmniOS r151008 behavior
***@omnios1:~# uname -v
omnios-6de5e81
***@omnios1:~#
***@omnios1:~# zfs diff -HF ***@test
M / /tank/
+ F /tank/abcd\37777777703\37777777651fg
***@omnios1:~#
I tried to patch from ZoL.
https://github.com/zfsonlinux/zfs/issues/1172
***@omnios1:~# ls -l /root/zfsdiff/lib
total 201
lrwxrwxrwx 1 root root 11 Apr 30 16:17 libzfs.so -> libzfs.so.1
-rwxr-xr-x 1 root bin 324932 Apr 28 20:29 libzfs.so.1
***@omnios1:~#
***@omnios1:~# LD_LIBRARY_PATH=/root/zfsdiff/lib zfs diff -HF ***@test
M / /tank/
+ F /tank/abcd\303\251fg
***@omnios1:~#
I created a wrapper script.
***@omnios1:~# cat /root/zfsdiff/zfsdiff.sh
#!/bin/bash
LIBZFS_DIR=/root/zfsdiff/lib
LD_LIBRARY_PATH=$LIBZFS_DIR zfs diff $* | awk '{cmd = "printf \"a" $0
"\""; cmd | getline line; close(cmd); sub(/^a/,"",line); print line}'
***@omnios1:~#
***@omnios1:~# /root/zfsdiff/zfsdiff.sh -HF ***@test
M / /tank/
+ F /tank/abcdéfg
***@omnios1:~#
Thanks
When illumos fix Bug #4448 ?
I want to use this on OmniOS.
OmniOS r151008 behavior
***@omnios1:~# uname -v
omnios-6de5e81
***@omnios1:~#
***@omnios1:~# zfs diff -HF ***@test
M / /tank/
+ F /tank/abcd\37777777703\37777777651fg
***@omnios1:~#
I tried to patch from ZoL.
https://github.com/zfsonlinux/zfs/issues/1172
***@omnios1:~# ls -l /root/zfsdiff/lib
total 201
lrwxrwxrwx 1 root root 11 Apr 30 16:17 libzfs.so -> libzfs.so.1
-rwxr-xr-x 1 root bin 324932 Apr 28 20:29 libzfs.so.1
***@omnios1:~#
***@omnios1:~# LD_LIBRARY_PATH=/root/zfsdiff/lib zfs diff -HF ***@test
M / /tank/
+ F /tank/abcd\303\251fg
***@omnios1:~#
I created a wrapper script.
***@omnios1:~# cat /root/zfsdiff/zfsdiff.sh
#!/bin/bash
LIBZFS_DIR=/root/zfsdiff/lib
LD_LIBRARY_PATH=$LIBZFS_DIR zfs diff $* | awk '{cmd = "printf \"a" $0
"\""; cmd | getline line; close(cmd); sub(/^a/,"",line); print line}'
***@omnios1:~#
***@omnios1:~# /root/zfsdiff/zfsdiff.sh -HF ***@test
M / /tank/
+ F /tank/abcdéfg
***@omnios1:~#
Thanks