All of lore.kernel.org
 help / color / mirror / Atom feed
* Question about ext2
@ 2001-07-13  8:08 malfet
  2001-07-13  8:42 ` Andrew Morton
  0 siblings, 1 reply; 8+ messages in thread
From: malfet @ 2001-07-13  8:08 UTC (permalink / raw)
  To: linux-kernel

Hi all!
I look up in implementation in ext2_rename and see the following statment:
       if (S_ISDIR(old_inode->i_mode)) {
                if (new_inode) {
                        retval = -ENOTEMPTY;
                        if (!empty_dir (new_inode))
                                goto end_rename;
                }
But I don't see any checkl like S_ISDIR on new_inode neither in ext2_rename neither in empty_dir. Is this bug? And, anyway, can I rename directory into not-empty file?
Thanks in advance,
	Nikita
P.S. Please, CC answer on malfet@mipt.sw.ru, because I'm not subscribed on this list

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

end of thread, other threads:[~2001-07-14 12:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-07-13  8:08 Question about ext2 malfet
2001-07-13  8:42 ` Andrew Morton
2001-07-13  9:57   ` Re[2]: " malfet
2001-07-13 10:23     ` Alexander Viro
2001-07-13 10:57   ` Alexander Viro
2001-07-13 20:22     ` Kai Henningsen
2001-07-14  5:58       ` Alexander Viro
2001-07-14 11:37         ` Kai Henningsen

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.