Assume the disk is /dev/da8, to create a slice of about 100 GB.
dfly# cat > fdisk.conf << _EOF_| // move_semantics1.rs | |
| // Make me compile! Scroll down for hints :) | |
| pub fn main() { | |
| let vec0 = Vec::new(); | |
| let mut vec1 = fill_vec(vec0); | |
| println!("{} has length {} content `{:?}`", "vec1", vec1.len(), vec1); |
| /*--- waitForKeyElements(): A utility function, for Greasemonkey scripts, | |
| that detects and handles AJAXed content. | |
| Original: https://gist.github.com/BrockA/2625891 | |
| Non-jQuery version by: Adam Katz, | |
| https://gist.github.com/adamhotep/7c9068f2196326ab79145ae308b68f9e | |
| License: CC BY-NC-SA 4.0 (*not* GPL-compatible) | |
| changes made by Adam Katz (tracked by adamhotep's github gist) are | |
| also licensed GPL v2+ (but note the CC BY-NC-SA prevents commercial use) | |
| License via https://gist.github.com/BrockA/2625891#gistcomment-1617026 |