[Btrfs-users] [bugreport] btrfs 0.11

Jeff Mahoney jeffm at suse.com
Sat Jan 19 14:10:53 PST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Gabor MICSKO wrote:
> On Sat, 2008-01-19 at 16:16 -0500, Jeff Mahoney wrote:
> 
>> Yeah, that'd do it. I include the following patch in openSUSE's
>> btrfs package.
>>
>> - -Jeff
>>
>> diff -rup a/source/file.c b/source/file.c
>> - --- a/file.c	2007-06-12 11:36:58.000000000 -0400
>> +++ b/file.c	2007-06-12 14:06:53.000000000 -0400
>> @@ -482,7 +482,7 @@ static ssize_t btrfs_file_write(struct f
>>  		goto out;
>>  	if (count == 0)
>>  		goto out;
>> - -	err = remove_suid(file->f_path.dentry);
>> +	err = remove_suid(&file->f_path);
>>  	if (err)
>>  		goto out;
>>  	file_update_time(file);
> 
> Is this patch against btrfs-0.11? Because it fails to apply.

Oh. No. You're right. That's against 0.9. Here's the 0.11 patch.

- -Jeff

- --- a/file.c	2008-01-17 15:39:28.000000000 -0500
+++ b/file.c	2008-01-17 15:40:27.000000000 -0500
@@ -719,7 +720,7 @@ static ssize_t btrfs_file_write(struct f
 		goto out_nolock;
 	if (count == 0)
 		goto out_nolock;
- -	err = remove_suid(fdentry(file));
+	err = remove_suid(&file->f_path);
 	if (err)
 		goto out_nolock;
 	file_update_time(file);


- -- 
Jeff Mahoney
SUSE Labs
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4-svn0 (GNU/Linux)
Comment: Using GnuPG with SUSE - http://enigmail.mozdev.org

iD8DBQFHknVtLPWxlyuTD7IRApRiAKCcNWORX7xOHgkmn21OaVT3f8Q79gCeO7cg
S6x48t5T44O7f71jh3JNtZE=
=Y+xq
-----END PGP SIGNATURE-----



More information about the Btrfs-users mailing list