Skip to content
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

Merged
merged 3 commits into from
May 6, 2018
Merged

fallocate: add page #2089

merged 3 commits into from
May 6, 2018

Conversation

fuerbringer
Copy link
Contributor

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.

Copy link
Member

@sbrl sbrl left a 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 :-)


- Deallocate 20MB of space after 100MB in a file:

`fallocate --collapse-range --offset 100M --length 20M {{path/to/file}}`
Copy link
Member

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 }}?


- Reserve a file taking up 700MB of disk space:

`fallocate --length 700M {{path/to/file}}`
Copy link
Member

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 }}?

@owenvoke owenvoke added the new command Issues requesting creation of a new page. label May 5, 2018

`fallocate --collapse-range --length {{200M}} {{path/to/file}}`

- Deallocate 20MB of space after 100MB in a file:
Copy link
Member

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.

Copy link
Member

@sbrl sbrl left a 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! 😺

@agnivade agnivade merged commit 5784942 into tldr-pages:master May 6, 2018
lamar-frankie pushed a commit to lamar-frankie/tldr that referenced this pull request Jun 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new command Issues requesting creation of a new page.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants