summaryrefslogtreecommitdiff
path: root/Base/usr
diff options
context:
space:
mode:
authorDavid Isaksson <davidisaksson93@gmail.com>2021-10-09 10:23:45 +0200
committerAndreas Kling <kling@serenityos.org>2021-10-09 12:06:47 +0200
commit7269ce15fce8acdf6711dc3a67e16d6f9c8ba67f (patch)
treebd3bde9839692fae7ec767a613dce749bc415168 /Base/usr
parent410d81706dbe367b472ec441ebf7cd016feac57f (diff)
downloadserenity-7269ce15fce8acdf6711dc3a67e16d6f9c8ba67f.zip
Base: Add man page for blockdev utility
Diffstat (limited to 'Base/usr')
-rw-r--r--Base/usr/share/man/man8/blockdev.md30
1 files changed, 30 insertions, 0 deletions
diff --git a/Base/usr/share/man/man8/blockdev.md b/Base/usr/share/man/man8/blockdev.md
new file mode 100644
index 0000000000..66134774cb
--- /dev/null
+++ b/Base/usr/share/man/man8/blockdev.md
@@ -0,0 +1,30 @@
+## Name
+
+blockdev - query block devices
+
+## Synopsis
+
+```**sh
+$ blockdev [options] <device>
+```
+
+## Description
+
+The `blockdev` command call ioctls on the given block device.
+
+## Options
+
+* `-s`, `--size`: Get disk size in bytes
+* `-b`, `--block-size`: Get block size in bytes
+
+## Examples
+
+```sh
+# Get disk size
+# blockdev -s /dev/hda
+863718912
+
+# Get block size
+# blockdev -b /dev/hda
+512
+```