Skip to contentSkip to conversation

blockdev(8): Some minor corrections to the manual

PATCH In review Bjarni Ingi Gislason 3 participants 4 messages Apr 2, 2014 – Apr 7, 2014 Util-Linux package

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 blockdev(8): Some minor corrections to the manual

Package: util-linux
Version: 2.24.1
Severity: minor
File: disk-utils/blockdev.8
Tags: patch

Changes:

Macro, that alternately changes the input between two font styles,
changed to the macro for one font style change, if there is only one argument

Text string, that begins or ends with a full stop (.) protected with \&

-- changed to \-\- if it is an option

- changed to \(en if it is a dash (pause, seperation)

Patch is in the attachment

Signature · 1 line
Bjarni I. Gislason
blockdev.8.new renamed from blockdev.8 +9 -9
@@ -10,14 +10,14 @@ blockdev \- call block device ioctls fro
 .B blockdev
 .RB [ \-q ]
 .RB [ \-v ]
-.IR command
-.RI [ command ...]
-.IR device
-.RI [ device ...]
+.I command
+.RI [ command \&...\&]
+.I device
+.RI [ device \&...\&]
 .br
 .B blockdev
 .B \-\-report
-.RI [ device ...]
+.RI [ device \&...\&]
 .SH DESCRIPTION
 The utility
 .B blockdev
@@ -60,9 +60,9 @@ Get read-only. Print 1 if the device is
 .IP "\fB\-\-getsize64\fP"
 Print device size in bytes.
 .IP "\fB\-\-getsize\fP"
-Print device size (32-bit!) in sectors. Deprecated in favor of the --getsz option.
+Print device size (32-bit!) in sectors. Deprecated in favor of the \-\-getsz option.
 .IP "\fB\-\-getss\fP"
-Print sectorsize in bytes - usually 512.
+Print sectorsize in bytes \(en usually 512.
 .IP "\fB\-\-getsz\fP"
 Get size in 512-byte sectors.
 .IP "\fB\-\-rereadpt\fP"
@@ -72,7 +72,7 @@ Set blocksize. Note that the block size
 descriptor opening the block device, so the change of block size only persists
 for as long as blockdev has the device open, and is lost once blockdev exits.
 .IP "\fB\-\-setfra\fP \fIsectors\fP"
-Set filesystem readahead (same like --setra on 2.6 kernels).
+Set filesystem readahead (same like \-\-setra on 2.6 kernels).
 .IP "\fB\-\-setra\fP \fIsectors\fP"
 Set readahead (in 512-byte sectors).
 .IP "\fB\-\-setro\fP"
@@ -80,7 +80,7 @@ Set read-only.
 .IP "\fB\-\-setrw\fP"
 Set read-write.
 .SH AUTHOR
-blockdev was written by Andries E. Brouwer and rewritten by Karel Zak.
+blockdev was written by Andries E.\& Brouwer and rewritten by Karel Zak.
 .SH AVAILABILITY
 The blockdev command is part of the util-linux package and is available from
 ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
#1 lore raw
Quoted 1 line · Bjarni Ingi Gislason

Patch is in the attachment

Hi Bjarni,

Great to see new contributor.

It seems you are sending quite a few patches, and it would be better to get them in git native format. Looking your message I think you have downloaded release package, made changes and used 'diff -u'. That's not too bad when sending a small number of changes. To me your number your patches is exceeding what I would describe as small number.

Could you get yourself a clone of this project. Configure your git, and resubmit.

git clone git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git
util-linux
git config --global user.name "Bjarni Ingi Gislason"
git config --global user.email [email protected]
git branch bjani
git checkout bjarni

# while patches {
git apply <each of your patch separately>
git add .
git commit -s
# }
# create patches
git format-patch -n master ~/ul-patches/
# test that you can send/receive emails
git send-email --to [email protected] ~/ul-patches/*
# if yes, and all looks good
git send-email --to [email protected] ~/ul-patches/*

If you end struggling with email for hours it might be easier to save all files in ul-patches directory to a single tar.gz file, and send it as an attachment. This is not quite as good as seeing patches in email list as message body, but at least the patches would be in easy to process format.

Signature · 2 lines
Sami Kerola
http://www.iki.fi/kerolasa/
maintainer
#2 lore raw
Quoted 2 lines · Bjarni Ingi Gislason
Quoted 1 line

Patch is in the attachment

Bjarni, I have merged all your patches, but Sami is right. It would be nice to have your patches in better format next time. Thanks!

Karel

Quoted 19 lines · Sami Kerola

git clone git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git
util-linux
git config --global user.name "Bjarni Ingi Gislason"
git config --global user.email [email protected]
git branch bjani
git checkout bjarni

# while patches {
git apply <each of your patch separately>
git add .
git commit -s
# }
# create patches
git format-patch -n master ~/ul-patches/
# test that you can send/receive emails
git send-email --to [email protected] ~/ul-patches/*
# if yes, and all looks good
git send-email --to [email protected] ~/ul-patches/*
Signature · 2 lines
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com
#3 lore raw
Quoted 6 lines · Karel Zak
Quoted 2 lines · Bjarni Ingi Gislason
Quoted 1 line

Patch is in the attachment

Bjarni, I have merged all your patches, but Sami is right. It would be nice to have your patches in better format next time. Thanks!

I have compiled "git", but I still have to get acquainted with (test
how to use) it.

There are more man pages in "git", that I imagined, so it is better
that I learn to use it instead of just using "diff -u ...", which causes other people more work.

Signature · 1 line
Bjarni I. Gislason