From: "Theodore Y. Ts'o" <tytso@mit.edu>
To: Bo Branten <bosse@acc.umu.se>
Cc: linux-ext4@vger.kernel.org
Subject: Re: A question on directory checksums
Date: Sat, 22 Feb 2020 13:49:12 -0500 [thread overview]
Message-ID: <20200222184912.GD873427@mit.edu> (raw)
In-Reply-To: <alpine.DEB.2.21.2002221122100.23269@stalin.acc.umu.se>
On Sat, Feb 22, 2020 at 11:36:43AM +0100, Bo Branten wrote:
>
> Hello,
>
> I am implementing support for metadata checksums on an ext4 driver for
> another os and test this by writing something and then run e2fsck from Linux
> to see what it says. When I create a new empty directory that only contains
> . and .. I got this error message from e2fsck that I want to ask you to
> clearify:
>
> bo@bo-desktop:~$ sudo e2fsck -pvf /dev/sdb2
> /dev/sdb2: Directory inode 64, block #0, offset 0: directory has no checksum.
> FIXED.
>
> Am I right that it is not the checksum on the inode that represents the
> directory but the checksum in the directory entry tail in the first and only
> block?
Yes. It means the dirent tail is missing.
> Also do "no checksum" means something different than wrong checksum, like I
> have not initialized it correctly? (if I dont call initialize_dirent_tail I
> will get another error message from e2fsck that speficially says there is no
> room for the checksum so it can not be that)
I'm not sure what you message you are referring to in your
parenthetical comment.
I'm guessing you don't want to look at the e2fsck source code? What
about using debugfs so you can see what the directory looks like
before and after running e2fsck.
- Ted
next prev parent reply other threads:[~2020-02-22 18:49 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-02-22 10:36 A question on directory checksums Bo Branten
2020-02-22 18:49 ` Theodore Y. Ts'o [this message]
2020-02-23 17:40 ` Bo Branten
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=20200222184912.GD873427@mit.edu \
--to=tytso@mit.edu \
--cc=bosse@acc.umu.se \
--cc=linux-ext4@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 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.