Date: Fri, 23 Jun 2006 22:20:44 +0300 (EEST) From: Dmitry Pryanishnikov <dmitry@atlantis.dp.ua> To: freebsd-current@freebsd.org Cc: pjd@freebsd.org Subject: Re: Journaling UFS with gjournal. Message-ID: <20060623221142.C68891@atlantis.atlantis.dp.ua> In-Reply-To: <200606231546.k5NFklED021340@lurza.secnetix.de> References: <200606231546.k5NFklED021340@lurza.secnetix.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello! On Fri, 23 Jun 2006, Oliver Fromme wrote: > > If your existing file system needs its last sector, then it wont work. If it > > does not need it, then it might work (although fsck does not check for a > > raw-device shrinkage - I think)... > > It has no way to check it. If the last sector of the > partition happens to be part of file data, overwriting > it with gjournal meta data will lead to a corrupted > file, and fsck(8) has no way to notice that, of course. It seems to me that badsect(8) is the way to go. Just try to declare the last sector as bad. fsck then (after marking and unmounting) will tell you whether this sector is used in another file (if so, you could just copy relevant data and delete the file while keeping just created BAD/nnnnn file covering the last sector). badsect+fsck will do all consistency checks for you. Sincerely, Dmitry -- Atlantis ISP, System Administrator e-mail: dmitry@atlantis.dp.ua nic-hdl: LYNX-RIPE
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060623221142.C68891>