linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH RFC 0/3][RESEND] ext2fsprogs: Symlink support and doc fix
@ 2012-12-20  2:49 Darren Hart
  2012-12-20  2:49 ` [PATCH 1/3] lib/ext2fs: Correct interates typo in texinfo docs Darren Hart
  0 siblings, 1 reply; 9+ messages in thread
From: Darren Hart @ 2012-12-20  2:49 UTC (permalink / raw)
  To: linux-ext4; +Cc: tytso, adilger, sgw

As we appear to have agreed that adding symlink support to debugfs via a new
ext2fs_symlink() function in libext2fs was something that needed doing, I
thought I'd use this as a trial run for my first contribution to the ext2fsprogs
package before I continue working on the larger project of completing initial
directory support for mke2fs.

While I modeled this patch after existing code, their were some inconcsistencies
in the code examples I used that I'd welcome input on. In particular:

o Should the ext2fs_link() happen right after ext2fs_new_inode()? Or should it
  happen closer to the end of the operation? do_write() and ext2fs_mkdir()
  handle this differently.

o Is it necessary to allocate the first block and assign it to the inode or the
  extents? ext2fs_mkdir() does this, do_write() does not. I opted for the
  simpler of the two and it passes my initial simple tests.

o Should I pass "mode" to ext2fs_new_inode() even though it is ignored?

o Would it make sense to try once to expand_dir rather than bailing out of
  ext2fs_mkdir() and ext2fs_symlink() if the directory is full?

o What would we like the initial uid,gid,mode,*time values to be for
  files/directories/links/etc. created with libext2fs?

Finally, I made an attempt to follow the coding style I observed in the code,
but if I missed something, please let me know.

Thanks,

Darren Hart
Intel Open Source Technology Center


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-12-23  4:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-20  2:49 [PATCH RFC 0/3][RESEND] ext2fsprogs: Symlink support and doc fix Darren Hart
2012-12-20  2:49 ` [PATCH 1/3] lib/ext2fs: Correct interates typo in texinfo docs Darren Hart
2012-12-20  2:49   ` [PATCH 2/3] lib/ext2fs: Add ext2fs_symlink Darren Hart
2012-12-20 21:51     ` Darrick J. Wong
2012-12-21 17:11       ` Darren Hart
2012-12-21 21:11         ` Darrick J. Wong
2012-12-23  4:33           ` Theodore Ts'o
2012-12-20  2:49   ` [PATCH 3/3] debugfs: Add symlink command Darren Hart
2012-12-23  3:48   ` [PATCH 1/3] lib/ext2fs: Correct interates typo in texinfo docs Theodore Ts'o

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).