mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-12-27 11:29:36 +03:00
37fd6e00a6
Added a simple sed script to do a search and replace on the Illumos ZFS file names and replace them with the ZFS on Linux equivalent. Example usage: # Replace Illumos paths with Linux paths $ ./scripts/zfs2zol-patch.sed arc.c.patch > arc.c.patch.linux # Ensure the script worked as expected $ diff arc.c.patch arc.c.patch.linux # Apply the patch using Linux paths $ patch -p1 < arc.c.patch.linux Signed-off-by: Richard Yao <ryao@gentoo.org> Signed-off-by: Prakash Surya <surya1@llnl.gov> Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov> Closes #1679
16 lines
579 B
Sed
Executable File
16 lines
579 B
Sed
Executable File
#!/bin/sed -f
|
|
|
|
s:usr/src/uts/common/fs/zfs/sys:include/sys:g
|
|
s:usr/src/uts/common/fs/zfs:module/zfs:g
|
|
s:usr/src/lib/libzpool:lib/libzpool:g
|
|
s:usr/src/cmd:cmd:g
|
|
s:usr/src/common/nvpair:module/nvpair:g
|
|
s:usr/src/lib/libzfs/common/libzfs.h:include/libzfs.h:g
|
|
s:usr/src/man/man1m/zfs.1m:man/man8/zfs.8:g
|
|
s:usr/src/uts/common/sys:include/sys:g
|
|
s:usr/src/lib/libzfs_core/common/libzfs_core.h:include/libzfs_core.h:g
|
|
s:usr/src/lib/libzfs/common:lib/libzfs:g
|
|
s:usr/src/lib/libzfs_core/common:lib/libzfs_core:g
|
|
s:lib/libzpool/common/sys:include/sys:g
|
|
s:lib/libzpool/common:lib/libzpool:g
|