Skip to content

Instantly share code, notes, and snippets.

@glauber-md
Created February 5, 2018 22:18
Show Gist options
  • Save glauber-md/83e05095a24d55c4fbe92d67c4d6e428 to your computer and use it in GitHub Desktop.
Save glauber-md/83e05095a24d55c4fbe92d67c4d6e428 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python
# Allocates space on disk by creating a dull file for testing purposes
f = open("/tmp/testfile.bin", "wb")
size = 10 * 1024 * 1024
f.write("\0" * size)
f.close()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment