[Btrfs-users] [bugreport] btrfs 0.11

Gabor MICSKO gmicsko at gmail.com
Sat Jan 19 14:40:24 PST 2008


On Sat, 2008-01-19 at 17:10 -0500, Jeff Mahoney wrote:
>  
> > 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);

Looks good. btrfs kernel module compiled without warning and no segfault
when i trying to copy to btrfs:

/dev/sda5 on /mnt type btrfs (rw)

root at btrfstest:/tmp# cp foobar /mnt/
root at btrfstest:/tmp# ls -la /mnt
total 100005
dr-xr-xr-x  1 root root        12 2008-01-19 21:19 .
drwxr-xr-x 21 root root      4096 2008-01-19 16:48 ..
-rw-r--r--  1 root root 102400000 2008-01-19 21:19 foobar

Thanks,

-- 
Gabor MICSKO <gmicsko at gmail.com>




More information about the Btrfs-users mailing list