From: Russell Coker <russell@coker.com.au>
To: Petr Uzel <petr.uzel@suse.cz>
Cc: "util-linux" <util-linux@vger.kernel.org>, 491021@bugs.debian.org
Subject: Re: [PATCH 2/3] mkswap: allow creating swap on /dev/hd[ab]
Date: Sun, 13 May 2012 23:38:51 +1000 [thread overview]
Message-ID: <201205132338.51614.russell@coker.com.au> (raw)
In-Reply-To: <1336909472-12277-2-git-send-email-petr.uzel@suse.cz>
The patch looks good. Although as /dev/hda seems to be unused it probably
won't affect anyone. It would be nice to get this Debian bug closed before it
turns 4.
On Sun, 13 May 2012, Petr Uzel <petr.uzel@suse.cz> wrote:
> Currently, mkswap does not allow swap to be created on /dev/hda and
> /dev/hdb. There is no reason why /dev/hda and /dev/hdb should be treated
> differently.
>
> Addresses: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=491021
> Cc: Russell Coker <russell@coker.com.au>
> Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
> ---
> disk-utils/mkswap.c | 5 -----
> 1 files changed, 0 insertions(+), 5 deletions(-)
>
> diff --git a/disk-utils/mkswap.c b/disk-utils/mkswap.c
> index c7dedd7..dec34e1 100644
> --- a/disk-utils/mkswap.c
> +++ b/disk-utils/mkswap.c
> @@ -596,13 +596,8 @@ main(int argc, char **argv) {
> exit(EXIT_FAILURE);
> }
>
> - /* Want a block device. Probably not /dev/hda or /dev/hdb. */
> if (!S_ISBLK(statbuf.st_mode))
> check=0;
> - else if (statbuf.st_rdev == 0x0300 || statbuf.st_rdev == 0x0340)
> - errx(EXIT_FAILURE, _("error: "
> - "will not try to make swapdevice on '%s'"),
> - device_name);
> else if (is_mounted(device_name))
> errx(EXIT_FAILURE, _("error: "
> "%s is mounted; will not make swapspace."),
--
My Main Blog http://etbe.coker.com.au/
My Documents Blog http://doc.coker.com.au/
next prev parent reply other threads:[~2012-05-13 13:49 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-05-13 11:44 [PATCH 1/3] mkswap: use is_mounted() instead of check_mount() Petr Uzel
2012-05-13 11:44 ` [PATCH 2/3] mkswap: allow creating swap on /dev/hd[ab] Petr Uzel
2012-05-13 13:38 ` Russell Coker [this message]
2012-05-15 9:23 ` Karel Zak
2012-05-13 11:44 ` [PATCH 3/3] mkswap: improve diagnostics message if the device is mounted Petr Uzel
2012-05-15 9:23 ` Karel Zak
2012-05-15 9:21 ` [PATCH 1/3] mkswap: use is_mounted() instead of check_mount() Karel Zak
2012-05-15 9:22 ` Karel Zak
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201205132338.51614.russell@coker.com.au \
--to=russell@coker.com.au \
--cc=491021@bugs.debian.org \
--cc=petr.uzel@suse.cz \
--cc=util-linux@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox