This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
openLUKS() { | |
read -s -p "Password: " password | |
local RETRY_COUNT=3 | |
echo "" | |
while [ $RETRY_COUNT -ne 0 ]; do | |
RETRY_COUNT=$(( RETRY_COUNT - 1 )) | |
for disk in a b c d e f g h i j k l m n o p q r s t u v w x y z; do | |
if [ -b /dev/sd${disk}2 ]; then | |
echo -n ${password} | gpg -q -d --no-tty --passphrase-fd 0 /mnt/key/decrypt.gpg | cryptsetup -q --key-file=- luksOpen /dev/sd${disk}2 crypt${disk}2 | |
STATUS=$? |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo rm -rf /System/Library/Extensions/zfs.kext | |
sudo rm -rf /System/Library/Filesystems/zfs.fs | |
sudo rm -f /usr/lib/libzfs.dylib | |
sudo rm -f /usr/lib/libzpool.dylib | |
sudo rm -f /usr/local/bin/zoink | |
sudo rm -f /usr/sbin/zfs | |
sudo rm -f /usr/sbin/zpool |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
rm -rf /System/Library/Extensions/spl.kext | |
rm -rf /usr/src/spl-* | |
rm -rf /System/Library/Extensions/zfs.kext | |
rm -rf /usr/src/zfs-* | |
rm -rf /usr/lib/modules-load.d | |
rm -rf /usr/lib/systemd | |
rm -rf /usr/local/etc/init.d | |
rm -rf /usr/local/etc/zfs/ | |
rm -rf /usr/local/include/libspl |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo kextunload -b net.lundman.zfs | |
sudo kextunload -b net.lundman.spl | |
cd /System/Library/Extensions | |
sudo rm -rf spl.kext | |
sudo rm -rf zfs.kext | |
cd /Library/Extensions | |
sudo rm -rf spl.kext |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://github.com/ilovezfs/homebrew/commit/238f0d1edcd783b5d2fa85731b64b1a31974de08 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>org.openzfsonosx.zfs.zed</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/local/sbin/zedlaunchd</string> | |
</array> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process: zfs [21220] | |
Path: /Users/*/zfs | |
Identifier: zfs | |
Version: 0 | |
Code Type: X86-64 (Native) | |
Parent Process: sudo [21219] | |
User ID: 0 | |
Date/Time: 2014-04-22 07:05:46.496 -0700 | |
OS Version: Mac OS X 10.8.5 (12F45) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/lib/libefi/rdwr_efi.c b/lib/libefi/rdwr_efi.c | |
index 68ee076..09b277e 100644 | |
--- a/lib/libefi/rdwr_efi.c | |
+++ b/lib/libefi/rdwr_efi.c | |
@@ -113,7 +113,7 @@ struct dk_map2 default_vtoc_map[NDKMAP] = { | |
#endif /* defined(_SUNOS_VTOC_16) */ | |
}; | |
-#ifdef DEBUG | |
+#ifndef DEBUG |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# zfsadm, originated by ilovezfs, licensed under GPLv3 | |
# | |
# Suggested workflows: | |
# 1) Run zfsadm with no options, in order to fetch and build ZFS. | |
# 2) Then, you may do one of these: | |
# 2a) Run 'zfsadm -k' to manually load the resulting suite, and use | |
# 'sudo ./cmd.sh zfs ...', 'sudo ./cmd.sh zpool ...', etc. | |
# 2b) Install the resulting suite using 'sudo make install' in each of | |
# their respective directories: ~/Developer/spl and ~/Developer/zfs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Josephs-MacBook-Pro:zfs joe$ dd if=/dev/zero of=poolonzvol.bin bs=1m count=256 | |
256+0 records in | |
256+0 records out | |
Josephs-MacBook-Pro:zfs joe$ sudo ./cmd.sh zpool create outter `pwd`/poolonzvol.bin | |
Josephs-MacBook-Pro:zfs joe$ sudo ./cmd.sh zpool status | |
pool: outter | |
state: ONLINE | |
scan: none requested | |
config: |
OlderNewer