-
-
Notifications
You must be signed in to change notification settings - Fork 4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fallocate: add page #2089
fallocate: add page #2089
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Cool! Thanks for the page, @fuerbringer 😺
Just a few quick notes for you to review below :-)
pages/linux/fallocate.md
Outdated
|
||
- Deallocate 20MB of space after 100MB in a file: | ||
|
||
`fallocate --collapse-range --offset 100M --length 20M {{path/to/file}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps put 100M
and 20M
in {{
and }}
?
pages/linux/fallocate.md
Outdated
|
||
- Reserve a file taking up 700MB of disk space: | ||
|
||
`fallocate --length 700M {{path/to/file}}` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps put 700M
in {{
and }}
?
pages/linux/fallocate.md
Outdated
|
||
`fallocate --collapse-range --length {{200M}} {{path/to/file}}` | ||
|
||
- Deallocate 20MB of space after 100MB in a file: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should it be "Shrink" instead of "Deallocate" ? The command looks the same to me. It's just that here it is happening at an offset whereas the previous one shrinks from the end of the file. The description should be consistent in both cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks ok to me! Once @agnivade's comment is dealt with, I think we can merge this. Thanks again, @fuerbringer! 😺
Linux-specific command line tool to allocate sparse files. Useful for allocating VM images or dummy files without "wasting" write cycles.
The page (if new), does not already exist in the repo.
The page (if new), has been added to the correct platform folder:
common/
if it's common to all platforms,linux/
if it's Linux-specific, and so on.The page has 8 or fewer examples.
The PR is appropriately titled:
<command name>: add page
for new pages, or<command name>: <description of changes>
for pages being edited.The page follows the contributing guidelines.