[PATCH] fatx dir remove possible problem

"Mark Spieth" <[email protected]> Wed, 13 Sep 2006 23:03:12 +1000
Newsgroups gmane.linux.ports.xbox.devel
Message-ID <[email protected]>
This is a multi-part message in MIME format.

------=_NextPart_000_04C0_01C6D788.C9EB4140
Content-Type: multipart/alternative;
	boundary="----=_NextPart_001_04C1_01C6D788.C9EB4140"


------=_NextPart_001_04C1_01C6D788.C9EB4140
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

hi
I found a fatx problem in dir.c which could possibly result in bad =
things
patch attached
cheers
mark
------=_NextPart_001_04C1_01C6D788.C9EB4140
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2963" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>hi</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>I found a fatx problem in dir.c which =
could=20
possibly result in bad things</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>patch attached</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>cheers</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>mark</FONT></DIV></BODY></HTML>

------=_NextPart_001_04C1_01C6D788.C9EB4140--

------=_NextPart_000_04C0_01C6D788.C9EB4140
Content-Type: application/octet-stream;
	name="dir.c.patch"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
	filename="dir.c.patch"

289c289=0A=
< 	int err =3D 0, nr_slots;=0A=
---=0A=
> 	int err =3D 0;=0A=
291a292=0A=
> 	de =3D NULL;=0A=
296,303c297,305=0A=
< 	endp =3D (struct fatx_dir_entry *)(bh->b_data + sb->s_blocksize);=0A=
< 	de->name_length =3D DELETED_FLAG;=0A=
< 	de++;=0A=
< 	nr_slots--;=0A=
< 	mark_buffer_dirty(bh);=0A=
< 	if (IS_DIRSYNC(dir))=0A=
< 		err =3D sync_dirty_buffer(bh);=0A=
< 	brelse(bh);=0A=
---=0A=
> 	if ((bh !=3D NULL) && (de !=3D NULL)) {=0A=
> 		endp =3D (struct fatx_dir_entry *)(bh->b_data + sb->s_blocksize);=0A=
> 		de->name_length =3D DELETED_FLAG;=0A=
> 		de++;=0A=
> 		mark_buffer_dirty(bh);=0A=
> 		if (IS_DIRSYNC(dir))=0A=
> 			err =3D sync_dirty_buffer(bh);=0A=
> 		brelse(bh);=0A=
> 	}=0A=

------=_NextPart_000_04C0_01C6D788.C9EB4140
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
------=_NextPart_000_04C0_01C6D788.C9EB4140
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Xbox-linux-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/xbox-linux-devel

------=_NextPart_000_04C0_01C6D788.C9EB4140--