[Libsysio-commit] HEAD: libsysio/src link.c
Brought to you by:
lward
From: Lee W. <lw...@us...> - 2009-08-03 17:47:57
|
Update of /cvsroot/libsysio/libsysio/src In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv13658 Modified Files: link.c Log Message: Removed redundant copy of _sysio_p_unlink, it's also in unlink.c How did this creep in? Did we move it and forget to delete the old? Anyway, it's gone now. Index: link.c =================================================================== RCS file: /cvsroot/libsysio/libsysio/src/link.c,v retrieving revision 1.17 retrieving revision 1.18 diff -u -w -b -B -p -r1.17 -r1.18 --- link.c 28 Jan 2009 16:13:19 -0000 1.17 +++ link.c 3 Aug 2009 17:47:42 -0000 1.18 @@ -87,34 +87,6 @@ _sysio_p_link(struct pnode *old, struct } /* - * Perform unlink operation on some pnode. - */ -int -_sysio_p_unlink(struct pnode *pno) -{ - int err; - - if (IS_RDONLY(pno)) - return -EROFS; - if (!pno->p_base->pb_ino) - return -ENOENT; /* huh? */ - if (S_ISDIR(pno->p_base->pb_ino->i_stbuf.st_mode)) - return -EISDIR; - /* - * Call the FS implementation. - */ - err = PNOP_UNLINK(pno); - if (err) - return err; - /* - * Clean the namespace graphs to reflect the unlink. - */ - _sysio_i_undead(pno->p_base->pb_ino); - _sysio_pb_disconnect(pno->p_base); - return 0; -} - -/* * Perform symlink operation; oldpath to new. */ int |