Re: EXT4 ENOSPC Bug

From: Theodore Tso
Date: Tue Dec 02 2008 - 15:33:33 EST


On Tue, Dec 02, 2008 at 06:47:24PM +0100, Andres Freund wrote:
>
> I think that I have seen the problem on metadata only changes (find
> /tmp -type f|xargs touch) as well, but sometimes metadata changes
> were possible while file creation was not.

Hmm... really? Was the error message ENOSPC, or something else?

The only way I can see that it might be ENOSPC would be if we got an
error in the jbd2 layer, in start_this_handle(), but that would have
resulted in a kernel printk:

if (nblocks > journal->j_max_transaction_buffers) {
printk(KERN_ERR "JBD: %s wants too many credits (%d > %d)\n",
current->comm, nblocks,
journal->j_max_transaction_buffers);
ret = -ENOSPC;
goto out;
}


If that wasn't too long ago, you might want to search your old system
log files in /var/log for any "JBD" or "ext4" messages. That might be
an important clue, although that seems rather unlikely to me. Or in
the case where metadata changes were failing, perhaps they were doing
so with some other error that ENOSPC?

- Ted
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/