From: David Woodhouse <dwmw2@infradead.org>
To: Stephen Hui <gromit1463@mailworks.org>
Cc: linux-mtd@lists.infradead.org
Subject: Re: "Read-only file system" error while writing
Date: Tue, 30 Jul 2002 23:25:26 +0100 [thread overview]
Message-ID: <14660.1028067926@redhat.com> (raw)
In-Reply-To: <1028064443.23642.52.camel@mahi190.austin.ibm.com>
gromit1463@mailworks.org said:
> When I write to the chips using either cat, dd, stdout redirection, or
> cp, the CFI driver complains of attempting to write to a "Read-only
> file system", even after unlocking all blocks in the partition and
> erasing the partition. I can mount /dev/mtdblock*, but mount
> complains and I still can't put anything into the mounted partition.
> do_write_buffer() in cfi_cmdset_0001.c is returning the error (EROFS).
The only case in which do_write_buffer() should return -EROFS is if the
status bit is set which means that the block in question was locked. Try
using the MEMUNLOCK ioctl to unlock it?
--
dwmw2
next prev parent reply other threads:[~2002-07-30 22:25 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-07-30 21:27 "Read-only file system" error while writing Stephen Hui
2002-07-30 22:25 ` David Woodhouse [this message]
2002-07-31 11:53 ` Jörn Engel
2003-05-21 11:33 ` Gordon J Milne
2003-05-21 14:18 ` Thayne Harbaugh
2003-05-22 21:57 ` Gordon J Milne
2002-07-31 15:35 ` Stuart Menefy
2002-07-31 20:24 ` Stephen Hui
2002-08-01 10:31 ` David Woodhouse
2002-08-01 18:05 ` Stuart Menefy
2002-08-01 18:26 ` Stuart Menefy
2002-08-01 19:45 ` Stephen Hui
2002-08-01 22:37 ` Stuart Menefy
2002-08-02 14:46 ` Stephen Hui
2002-08-01 10:35 ` David Woodhouse
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=14660.1028067926@redhat.com \
--to=dwmw2@infradead.org \
--cc=gromit1463@mailworks.org \
--cc=linux-mtd@lists.infradead.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