-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
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
blockdev: add page #13922
base: main
Are you sure you want to change the base?
blockdev: add page #13922
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.
Thank you for your first. Please make sure to read the style guide and contributing guide.
I have added a comment that needs to be addressed before the PR is GTG.
pages/linux/blockdev.md
Outdated
`blockdev --report /dev/sdX` | ||
|
||
- Get the size of a device in 512-byte sectors: | ||
|
||
`blockdev --getsz /dev/sdX` | ||
|
||
- Set read-only: | ||
|
||
`blockdev --setro /dev/sdX` | ||
|
||
- Set read-write: | ||
|
||
`blockdev --setrw /dev/sdX` | ||
|
||
- Flush buffers: | ||
|
||
`blockdev --flushbufs /dev/sdX` | ||
|
||
- Get the physical block size: | ||
|
||
`blockdev --getpbsz /dev/sdX` | ||
|
||
- Set the read-ahead value to 128 sectors: | ||
|
||
`blockdev --setra 128 /dev/sdX` |
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.
`blockdev --report /dev/sdX` | |
- Get the size of a device in 512-byte sectors: | |
`blockdev --getsz /dev/sdX` | |
- Set read-only: | |
`blockdev --setro /dev/sdX` | |
- Set read-write: | |
`blockdev --setrw /dev/sdX` | |
- Flush buffers: | |
`blockdev --flushbufs /dev/sdX` | |
- Get the physical block size: | |
`blockdev --getpbsz /dev/sdX` | |
- Set the read-ahead value to 128 sectors: | |
`blockdev --setra 128 /dev/sdX` | |
`blockdev --report {{/dev/sdX}}` | |
- Get the size of a device in 512-byte sectors: | |
`blockdev --getsz {{/dev/sdX}}` | |
- Set read-only: | |
`blockdev --setro {{/dev/sdX}}` | |
- Set read-write: | |
`blockdev --setrw {{/dev/sdX}}` | |
- Flush buffers: | |
`blockdev --flushbufs {{/dev/sdX}}` | |
- Get the physical block size: | |
`blockdev --getpbsz {{/dev/sdX}}` | |
- Set the read-ahead value to 128 sectors: | |
`blockdev --setra 128 {{/dev/sdX}}` |
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.
Do the device paths need to be absolute or can they be relative?
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.
Yeah, the paths are required to be absolute.
Thank you very much, Fixed the formatting ✌️ |
common
,linux
,osx
,windows
,sunos
,android
, etc.Solves #13699