From: Jamie Lokier <lk@tantalophile.demon.co.uk>
To: Mikael Pettersson <mikpe@csd.uu.se>
Cc: linux-kernel@vger.kernel.org, tmolina@home.com
Subject: Re: problem with dd for floppy under 2.4.0
Date: Thu, 25 Jan 2001 19:27:21 +0100 [thread overview]
Message-ID: <20010125192721.C5109@pcep-jamie.cern.ch> (raw)
In-Reply-To: <200101231208.NAA29008@harpo.it.uu.se>
In-Reply-To: <200101231208.NAA29008@harpo.it.uu.se>; from mikpe@csd.uu.se on Tue, Jan 23, 2001 at 01:08:54PM +0100
Mikael Pettersson wrote:
> There's a known bug in dd where it incorrectly attempts to truncate
> the output file even though it's a block device.
dd also attempts to truncate a character device, therefore fails in the
same way.
The kernel should probably return EINVAL for this rather than EPERM.
> In kernels older
> than 2.4.0-test10 or so it got away with this, but now the kernel
> correctly returns an error.
>
> Use the 'conv=notrunc' option to dd to fix this, i.e.
>
> dd if=rootfs.gz of=/dev/fd0 bs=1k conv=notrunc seek=XXX
If only it were so easy to fix the program that calls dd...
-- Jamie
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/
next prev parent reply other threads:[~2001-01-25 18:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-01-23 12:08 Mikael Pettersson
2001-01-25 18:27 ` Jamie Lokier [this message]
-- strict thread matches above, loose matches on Subject: below --
2001-01-23 5:23 Thomas Molina
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=20010125192721.C5109@pcep-jamie.cern.ch \
--to=lk@tantalophile.demon.co.uk \
--cc=linux-kernel@vger.kernel.org \
--cc=mikpe@csd.uu.se \
--cc=tmolina@home.com \
/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
all inboxes | Powered by JetHome®