From: "Vineet Joglekar" <vintya@excite.com>
To: linux-kernel@vger.kernel.org, linux-c-programming@vger.kernel.org
Subject: Adding a field to ext2_dir_entry_2
Date: Mon, 4 Apr 2005 18:54:42 -0400 (EDT) [thread overview]
Message-ID: <20050404225442.52A7AB730@xprdmailfe18.nwk.excite.com> (raw)
Hi All,
I working with linux kernel 2.4.28. I want to add 1 more field to ext2_dir_entry_2 - the new version of directory entry for ext2fs.
I did add the __u32 field to the struct ext2_dir_entry_2 defined in ext2_fs.h I also modified the EXT2_DIR_REC_LEN macro to:
(((name_len) + 12 + EXT2_DIR_ROUND) & ~EXT2_DIR_ROUND)
(+12 instead of +8) to incorporate newly added 4 bytes field.
I made the similar changes to the mke2fs utility also.
When I try to copy a file on that file system, I am getting the following error:
"ext2-fs error (device fd(2,0)): ext2_check_page: bad entry in directory #2: unaligned directory entry - offset=0, inode=2, rec_len=46, name_len=0"
Can someone please tell me where am I going wrong or what other changes do I need to do to add the field I want?
Thanks and regards,
Vineet Joglekar
_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!
next reply other threads:[~2005-04-04 22:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-04 22:54 Vineet Joglekar [this message]
2005-04-04 23:17 ` Adding a field to ext2_dir_entry_2 Andreas Dilger
-- strict thread matches above, loose matches on Subject: below --
2005-04-05 0:08 Vineet Joglekar
2005-04-04 22:10 ` Christopher Li
2005-04-05 1:12 ` Andreas Dilger
2005-04-05 3:53 ` Theodore Ts'o
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=20050404225442.52A7AB730@xprdmailfe18.nwk.excite.com \
--to=vintya@excite.com \
--cc=linux-c-programming@vger.kernel.org \
--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;
as well as URLs for NNTP newsgroup(s).