Re: git tree for reiser4 development

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Arkadiusz Miskiewicz wrote:
> On Sunday 07 of November 2010, Edward Shishkin wrote:
>
>   
>>> Was looking for something newer - close to 2.6.36
>>>       
>> reiser4-for-2.6.36 stuff is not yet ready.
>>     
>
> Dirty, untested change for .35 patch ... I assume "real" update needs more than this?
>   

Yes, much more:
reiser4-for-2.6.35 stuff works incorrectly.
->write_end() methods of both file plugins should be fixed.
Also reiser4 needs a ->sync_fs() method of super operations.
I am working on this at my spare time.

Edward.

> Index: kernel-reiser4.patch
> ===================================================================
> RCS file: /cvsroot/packages/kernel/kernel-reiser4.patch,v
> retrieving revision 1.13
> retrieving revision 1.14
> diff -u -u -r1.13 -r1.14
> --- kernel-reiser4.patch	5 Aug 2010 19:52:26 -0000	1.13
> +++ kernel-reiser4.patch	7 Nov 2010 18:25:45 -0000	1.14
> @@ -40016,7 +40016,7 @@
>  diff -urN linux-2.6.35.orig/fs/reiser4/plugin/inode_ops.c linux-2.6.35/fs/reiser4/plugin/inode_ops.c
>  --- linux-2.6.35.orig/fs/reiser4/plugin/inode_ops.c	1970-01-01 01:00:00.000000000 +0100
>  +++ linux-2.6.35/fs/reiser4/plugin/inode_ops.c	2010-08-04 15:44:57.000000000 +0200
> -@@ -0,0 +1,906 @@
> +@@ -0,0 +1,916 @@
>  +/*
>  + * Copyright 2005 by Hans Reiser, licensing governed by reiser4/README
>  + */
> @@ -40479,9 +40479,19 @@
>  +				return result;
>  +			}
>  +		}
> -+		result = inode_setattr(inode, attr);
> -+		if (!result)
> ++
> ++		if ((attr->ia_valid & ATTR_SIZE) &&
> ++		    attr->ia_size != i_size_read(inode))
> ++			result = vmtruncate(inode, attr->ia_size);
> ++			if (result)
> ++				goto result_error;
> ++		setattr_copy(inode, attr);
> ++		mark_inode_dirty(inode);
> ++		result = 0;
> ++result_error:
> ++		if (!result) {
>  +			reiser4_update_sd(inode);
> ++		}
>  +	}
>  +
>  +	context_set_commit_async(ctx);
> @@ -56458,7 +56468,7 @@
>  +	.read = reiser4_read_careful,
>  +	.write = reiser4_write_careful,
>  +	.aio_read = generic_file_aio_read,
> -+	.ioctl = reiser4_ioctl_careful,
> ++	.unlocked_ioctl = reiser4_ioctl_careful,
>  +	.mmap = reiser4_mmap_careful,
>  +	.open = reiser4_open_careful,
>  +	.release = reiser4_release_careful,
> @@ -65466,7 +65476,7 @@
>  +
>  +	truncate_inode_pages(&inode->i_data, 0);
>  +	inode->i_blocks = 0;
> -+	clear_inode(inode);
> ++	end_writeback(inode);
>  +	reiser4_exit_context(ctx);
>  +}
>  +
> @@ -65726,11 +65736,11 @@
>  +	.alloc_inode = reiser4_alloc_inode,
>  +	.destroy_inode = reiser4_destroy_inode,
>  +	.dirty_inode = reiser4_dirty_inode,
> -+	.delete_inode = reiser4_delete_inode,
> ++	.evict_inode = reiser4_delete_inode,
>  +	.put_super = reiser4_put_super,
>  +	.write_super = reiser4_write_super,
>  +	.statfs = reiser4_statfs,
> -+	.clear_inode = reiser4_clear_inode,
> ++//	.clear_inode = reiser4_clear_inode,
>  +	.writeback_inodes = reiser4_writeback_inodes,
>  +	.show_options = reiser4_show_options
>  +};
>
>
>   
>> Thanks,
>> Edward.
>>     
>
>
>   

--
To unsubscribe from this list: send the line "unsubscribe reiserfs-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux File System Development]     [Linux BTRFS]     [Linux NFS]     [Linux Filesystems]     [Ext4 Filesystem]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Device Mapper]     [Linux Resources]

  Powered by Linux