[Tux3] [PATCH] rename and rmdir

Daniel Phillips phillips at phunq.net
Sat Dec 6 22:06:10 PST 2008

On Saturday 06 December 2008 20:35, Michael Pattrick wrote:
> The previous patch didn't include my changes to tux3.h, here is a correction
> Cheers,
> Michael Pattrick
> On Sat, Dec 6, 2008 at 10:53 PM, Michael Pattrick
> <mpattrick at rhinovirus.org> wrote:
> > Inspired by Pranith, I thought I would try to add to the directory
> > functions in namei.c. Attached is a patch for rename and rmdir, I cant
> > really vouch for the 'correctness' of it, but I tested it out for a
> > while in UML and it seems to work correctly.
> >
> > This is really my first patch for low level file system operations, so
> > I won't be offended if you point out any flaws.
> >
> > Cheers,
> > Michael Pattrick

Hi Michael,

Welcome, and congratulations for getting something working at all in a
low level filesystem on your first try!

Well, tux3_rename and tux3_rmdir look plausible, but tux_add_link is a
cut and paste of tux_create_entry.  You should be able to write it as a
call to the original tux_create_entry.



Tux3 mailing list
Tux3 at tux3.org

More information about the Tux3 mailing list