public inbox for linux-fsdevel@vger.kernel.org
 help / color / mirror / Atom feed
* inode->i_op->rename semantics .
@ 2003-05-13  9:29 Nir Tzachar
  2003-05-13 10:06 ` viro
  0 siblings, 1 reply; 12+ messages in thread
From: Nir Tzachar @ 2003-05-13  9:29 UTC (permalink / raw)
  To: linux-fsdevel

hello all.

im having problem with the mentioned semantics.

can someone please clarify what am i supposed to do in the rename
function??

this is what i thought ( im dealing only with regular files, no
directories. ) :

if we'll ignore all the directory structure menagement, it comes to this->

        struct inode *new_inode = new_dentry->inode;
       	if (new_inode){
		new_inode->i_nlink--;
       		mark_inode_dirty(new_inode);
       		dput(new_dentry);
	}
	else { /* do nothing... */ }

is this correct? well, i thought it was, but the new_inode is not deleted
by the vfs as i supposed .

i think if someone could clarify where in the vfs code the new_inode and
the old_inode get switched ( if at all, or am i supposed to do it? ) it
will solve my misunderstanding.

anyway, thank u all.



========================================================================
nir.



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

end of thread, other threads:[~2003-05-25 17:39 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-05-13  9:29 inode->i_op->rename semantics Nir Tzachar
2003-05-13 10:06 ` viro
2003-05-13 15:23   ` Nir Tzachar
2003-05-13 15:48     ` Nikita Danilov
2003-05-13 19:28     ` Charles Manning
2003-05-14  5:54       ` Nir Tzachar
2003-05-14 15:33         ` viro
2003-05-15  7:46           ` Nir Tzachar
2003-05-15 22:20             ` Charles Manning
2003-05-16  1:09             ` viro
2003-05-16  7:39               ` Nir Tzachar
2003-05-25 17:54                 ` David Chow

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox