* Disk full and writting to pre-allocated area on ReiserFS
@ 2004-10-15 21:35 Peter Zaitsev
2004-10-16 15:22 ` Hans Reiser
0 siblings, 1 reply; 4+ messages in thread
From: Peter Zaitsev @ 2004-10-15 21:35 UTC (permalink / raw)
To: linux-kernel
Hi,
I'm running SuSE 9.1 Kernel 2.6.5-7.108-default
But I would guess it applies to large variety of platforms as we have
customers reporting the same problem.
I'm using reiserfs:
/dev/md0 on /data type reiserfs (rw,noatime,notail,data=writeback)
The problem is in case of disk full condition, "Disk full" error is
being reported even if write happens to Pre-Allocated area, in my case
to Innodb recovery log files.
This is very unfortunate as in such case Innodb has no way but to
terminate database server. These logs are specially pre-allocated so
one would not run in such condition.
Question: Is there any way to avoid this problem with Reiserfs ?
--
Peter Zaitsev, Senior Support Engineer
MySQL AB, www.mysql.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Disk full and writting to pre-allocated area on ReiserFS
2004-10-15 21:35 Disk full and writting to pre-allocated area on ReiserFS Peter Zaitsev
@ 2004-10-16 15:22 ` Hans Reiser
2004-10-18 10:45 ` Vladimir Saveliev
0 siblings, 1 reply; 4+ messages in thread
From: Hans Reiser @ 2004-10-16 15:22 UTC (permalink / raw)
To: Peter Zaitsev; +Cc: linux-kernel, vs, Chris Mason, Jeff Mahoney
Peter Zaitsev wrote:
>Hi,
>
>I'm running SuSE 9.1 Kernel 2.6.5-7.108-default
>But I would guess it applies to large variety of platforms as we have
>customers reporting the same problem.
>
>I'm using reiserfs:
>/dev/md0 on /data type reiserfs (rw,noatime,notail,data=writeback)
>
>The problem is in case of disk full condition, "Disk full" error is
>being reported even if write happens to Pre-Allocated area, in my case
>to Innodb recovery log files.
>
>This is very unfortunate as in such case Innodb has no way but to
>terminate database server. These logs are specially pre-allocated so
>one would not run in such condition.
>
>Question: Is there any way to avoid this problem with Reiserfs ?
>
>
>
>
vs or chris or jeff, can you comment?
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Disk full and writting to pre-allocated area on ReiserFS
2004-10-16 15:22 ` Hans Reiser
@ 2004-10-18 10:45 ` Vladimir Saveliev
2004-10-18 10:54 ` mjt
0 siblings, 1 reply; 4+ messages in thread
From: Vladimir Saveliev @ 2004-10-18 10:45 UTC (permalink / raw)
To: reiserfs-dev@namesys.com; +Cc: reiserfs-list
[-- Attachment #1: Type: text/plain, Size: 1167 bytes --]
Hello
Could someone please forward this mail to peter@mysql.com (for unknown
reasons I can not send anything to some addresses).
On Sat, 2004-10-16 at 19:22, Hans Reiser wrote:
> Peter Zaitsev wrote:
>
> >Hi,
> >
> >I'm running SuSE 9.1 Kernel 2.6.5-7.108-default
> >But I would guess it applies to large variety of platforms as we have
> >customers reporting the same problem.
> >
> >I'm using reiserfs:
> >/dev/md0 on /data type reiserfs (rw,noatime,notail,data=writeback)
> >
> >The problem is in case of disk full condition, "Disk full" error is
> >being reported even if write happens to Pre-Allocated area, in my case
> >to Innodb recovery log files.
> >
> >This is very unfortunate as in such case Innodb has no way but to
> >terminate database server. These logs are specially pre-allocated so
> >one would not run in such condition.
> >
> >Question: Is there any way to avoid this problem with Reiserfs ?
> >
Would you please check whether attached patch fixes the problem?
> >
> >
> >
> vs or chris or jeff, can you comment?
>
This looks like a bug in reiserfs_file_write. It does not distinguish
whether new disk space is to be allocate.
[-- Attachment #2: file.c.diff2 --]
[-- Type: text/plain, Size: 270 bytes --]
--- file.c~ 2004-10-02 12:29:33.223660850 +0400
+++ file.c 2004-10-08 10:03:03.001561661 +0400
@@ -1137,6 +1137,8 @@
return result;
}
+ return generic_file_write(file, buf, count, ppos);
+
if ( unlikely((ssize_t) count < 0 ))
return -EINVAL;
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Disk full and writting to pre-allocated area on ReiserFS
2004-10-18 10:45 ` Vladimir Saveliev
@ 2004-10-18 10:54 ` mjt
0 siblings, 0 replies; 4+ messages in thread
From: mjt @ 2004-10-18 10:54 UTC (permalink / raw)
To: Vladimir Saveliev; +Cc: reiserfs-dev@namesys.com, reiserfs-list
On Mon, Oct 18, 2004 at 02:45:10PM +0400, Vladimir Saveliev wrote:
>Could someone please forward this mail to peter@mysql.com (for unknown
>reasons I can not send anything to some addresses).
Forwarded.
--
mjt
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2004-10-18 10:54 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-10-15 21:35 Disk full and writting to pre-allocated area on ReiserFS Peter Zaitsev
2004-10-16 15:22 ` Hans Reiser
2004-10-18 10:45 ` Vladimir Saveliev
2004-10-18 10:54 ` mjt
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.