mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: malfet@gw.mipt.sw.ru
To: linux-kernel@vger.kernel.org
Subject: Question about ext2
Date: Fri, 13 Jul 2001 12:08:40 +0400	[thread overview]
Message-ID: <20010713120840.A9431@srv.mipt.sw.ru> (raw)

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

             reply	other threads:[~2001-07-13  8:05 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-07-13  8:08 malfet [this message]
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

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=20010713120840.A9431@srv.mipt.sw.ru \
    --to=malfet@gw.mipt.sw.ru \
    --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

all inboxes | Powered by JetHome®