mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Walter Hofmann <walter.hofmann@mi.uni-erlangen.de>
To: linux-kernel@vger.kernel.org
Subject: Filesystem space accounting bug
Date: Tue, 25 May 2004 17:05:12 +0200	[thread overview]
Message-ID: <20040525150512.GE7195@secretlab.mine.nu> (raw)

Hi,

I have a backup script which creates a filesystem image which is later 
written to DVD. It is created & loop-mounted with

 dd if=/dev/zero of=${DARIMAGE} bs=1024k count=4460 || exit 1
 mke2fs -F -b 4096 -m 0 -N 32 -O sparse_super -L BACKUP ${DARIMAGE} || exit 1
 sync
 mount /mnt/dar
 touch /mnt/dar/backup-stamp

Then I use the "dar" utility to create a single large file on this. I
believe, but have not checked, that dar writes the file linearly. dar is
instructed to stop writing to the filesystem before it reaches 4GB. 

However, recently, dar failed after approx. 3GB with ENOSPC. The 
filesystem was still mounted, so I could check that there really were 
only 3GB written to it. Still, I could not even create a 1 byte file on 
it, although there should be around 1GB free space left.

There were no error messages logged. I unmounted the image and ran 
e2fsck on it and it reported that the free block count in a number of 
groups on the filesystem was wrong. 

I'm using Linux 2.6.6. I tried to reproduce this, but now it works
again.

Walter

             reply	other threads:[~2004-05-25 15:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-05-25 15:05 Walter Hofmann [this message]
2004-05-26  7:38 ` Calvin Spealman

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=20040525150512.GE7195@secretlab.mine.nu \
    --to=walter.hofmann@mi.uni-erlangen.de \
    --cc=linux-kernel@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

all inboxes | Powered by JetHome®