linux-ext4.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Issue in ext4 rename
@ 2015-04-02 10:49 Joseph Qi
  2015-04-02 14:02 ` Theodore Ts'o
  0 siblings, 1 reply; 4+ messages in thread
From: Joseph Qi @ 2015-04-02 10:49 UTC (permalink / raw)
  To: linux-ext4

Hi all,
In ext4_rename_delete, it only logs a warning if ext4_delete_entry
fails.
IMO, it may lead to an inode with two entries (old and new), thus
filesystem will be inconsistent.
The case is described below:
ext4_rename
	--> ext4_journal_start
	--> ext4_add_entry (new)
	--> ext4_rename_delete (old)
		--> ext4_delete_entry
			--> ext4_journal_get_write_access
			*failed* because of -ENOMEM
	--> ext4_journal_stop
Does anyone have an idea to resolve this issue?


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

end of thread, other threads:[~2015-04-03 15:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-02 10:49 Issue in ext4 rename Joseph Qi
2015-04-02 14:02 ` Theodore Ts'o
2015-04-03  9:57   ` Joseph Qi
2015-04-03 15:06     ` 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).