Skip to content

Commit

Permalink
remove commented code
Browse files Browse the repository at this point in the history
  • Loading branch information
toy committed Jul 31, 2016
1 parent 8669b2e commit 95c9ffc
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions stressdrive.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,18 +143,6 @@ int main(int argc, const char *argv[]) {

free(block);

/*
This ends up kicking the entire device off the bus, which is too much:
if (ioctl(fd, DKIOCEJECT) == -1) {
perror("ioctl(DKIOCEJECT) failed");
exit(EXIT_FAILURE);
}
Instead, run `stressdrive foo; diskutil unmount /Volumes/bar` or disable
Disk Arbitration via
`sudo launchctl (unload|load)
/System/Library/LaunchDaemons/com.apple.diskarbitrationd.plist`
*/

close(fd);
return 0;
}

0 comments on commit 95c9ffc

Please sign in to comment.