]> granicus.if.org Git - zfs/commit
Add script to fix file names in upstream patches
authorPrakash Surya <surya1@llnl.gov>
Mon, 26 Aug 2013 16:23:09 +0000 (09:23 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 29 Oct 2013 17:30:43 +0000 (10:30 -0700)
commit37fd6e00a699aff3fea24199497e9484cd218a84
treeb3bd498651ddc032a1f4e3f363ca7ad3f201b07c
parentc12e3a594a49ed10b7870d950c1f336f78f136cb
Add script to fix file names in upstream patches

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
scripts/Makefile.am
scripts/zfs2zol-patch.sed [new file with mode: 0755]