linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Anton Altaparmakov <aia21@cus.cam.ac.uk>
To: linux-kernel@vger.kernel.org
Subject: PATCH: 2.4.0-test11-pre6 NTFS: new_inode namespace clash fix
Date: Fri, 17 Nov 2000 10:19:52 +0000 (GMT)	[thread overview]
Message-ID: <Pine.SOL.3.96.1001117101847.16389A-200000@virgo.cus.cam.ac.uk> (raw)

[-- Attachment #1: Type: TEXT/PLAIN, Size: 448 bytes --]

This patch fixes the namespace collision in NTFS new_inode that appeared
with pre6 (have submitted it to Linus).

Thanks go to Albert Cranford <ac9410@bellsouth.net> for being the first
one to spot this.

Regards,

Anton

-- 

Anton Altaparmakov       Phone: +44-(0)1223-333541 (lab)
Christ's College         eMail: AntonA@bigfoot.com
Cambridge CB2 3BU          WWW: http://www-stu.christs.cam.ac.uk/~aia21/
United Kingdom             ICQ: 8561279

[-- Attachment #2: Type: TEXT/PLAIN, Size: 1350 bytes --]

diff -ur linux-2.4.0-test11-pre6/fs/ntfs/fs.c linux/fs/ntfs/fs.c
--- linux-2.4.0-test11-pre6/fs/ntfs/fs.c	Fri Nov 17 11:05:11 2000
+++ linux/fs/ntfs/fs.c	Fri Nov 17 11:08:02 2000
@@ -428,7 +428,7 @@
 	int error=0;
 	ntfs_attribute *si;
 
-	r=new_inode(dir->i_sb);
+	r=ntfs_new_inode(dir->i_sb);
 	if(!r){
 		error=ENOMEM;
 		goto fail;
@@ -500,7 +500,7 @@
 		goto out;
 
 	error = EIO;
-	r = new_inode(dir->i_sb);
+	r = ntfs_new_inode(dir->i_sb);
 	if (!r)
 		goto out;
 	
diff -ur linux-2.4.0-test11-pre6/fs/ntfs/inode.c linux/fs/ntfs/inode.c
--- linux-2.4.0-test11-pre6/fs/ntfs/inode.c	Wed Jun 21 18:10:02 2000
+++ linux/fs/ntfs/inode.c	Fri Nov 17 11:08:32 2000
@@ -1050,7 +1050,7 @@
 
 /* We have to skip the 16 metafiles and the 8 reserved entries */
 static int 
-new_inode (ntfs_volume* vol,int* result)
+ntfs_new_inode (ntfs_volume* vol,int* result)
 {
 	int byte,error;
 	int bit;
@@ -1236,11 +1236,11 @@
 	ntfs_volume* vol=dir->vol;
 	int byte,bit;
 
-	error=new_inode (vol,&(result->i_number));
+	error=ntfs_new_inode (vol,&(result->i_number));
 	if(error==ENOSPC){
 		error=ntfs_extend_mft(vol);
 		if(error)return error;
-		error=new_inode(vol,&(result->i_number));
+		error=ntfs_new_inode(vol,&(result->i_number));
 	}
 	if(error){
 		ntfs_error ("ntfs_get_empty_inode: no free inodes\n");

                 reply	other threads:[~2000-11-17 10:50 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=Pine.SOL.3.96.1001117101847.16389A-200000@virgo.cus.cam.ac.uk \
    --to=aia21@cus.cam.ac.uk \
    --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;
as well as URLs for NNTP newsgroup(s).