* nilfs2 on Scientific Linux 6
@ 2011-11-09 7:18 Shingo TAKADA
[not found] ` <4EBA295D.3060400-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Shingo TAKADA @ 2011-11-09 7:18 UTC (permalink / raw)
To: linux-nilfs-u79uwXL29TY76Z2rM5mHXA
hi.
I'm trying to use nilfs2 on Scientific Linux 6.1 with kernel
2.6.32-131.17.1.el6.x86_64.
currently, there's no official package for SL6.1 (and RHEL6),
so i tried to build rpm package using CentOS 5's srpm.
i installed nilfs-kmod-2.0.22-4.src.rpm, extract nilfs-2.0.22.tar.bz2 and
tried to make, but fails like:
$ pwd
/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs
$ make -C /usr/src/kernels/2.6.32-131.17.1.el6.x86_64 M=`pwd`
make: Entering directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
LD /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/built-in.o
CC [M] /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.o
In file included from /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.c:28:
/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/nilfs.h: In function ‘nilfs_init_acl’:
/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/nilfs.h:234: error: dereferencing
pointer to incomplete type
make[1]: *** [/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.o] Error 1
make: *** [_module_/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs] Error 2
make: Leaving directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
I installed SL6.1's kernel Source RPM(srpm) , try to make from the
sources in the srpm. i installed kernel-2.6.32-131.17.1.el6.src.rpm
using yumdownloader.
but fails like:
$ pwd
/tmp/sl6-srpm-nilfs2
$ make -C /usr/src/kernels/2.6.32-131.17.1.el6.x86_64 M=`pwd`
make: Entering directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
LD /tmp/sl6-srpm-nilfs2/built-in.o
CC [M] /tmp/sl6-srpm-nilfs2/inode.o
CC [M] /tmp/sl6-srpm-nilfs2/file.o
CC [M] /tmp/sl6-srpm-nilfs2/dir.o
CC [M] /tmp/sl6-srpm-nilfs2/super.o
CC [M] /tmp/sl6-srpm-nilfs2/namei.o
CC [M] /tmp/sl6-srpm-nilfs2/page.o
CC [M] /tmp/sl6-srpm-nilfs2/mdt.o
CC [M] /tmp/sl6-srpm-nilfs2/btnode.o
CC [M] /tmp/sl6-srpm-nilfs2/bmap.o
CC [M] /tmp/sl6-srpm-nilfs2/btree.o
CC [M] /tmp/sl6-srpm-nilfs2/direct.o
CC [M] /tmp/sl6-srpm-nilfs2/dat.o
CC [M] /tmp/sl6-srpm-nilfs2/recovery.o
CC [M] /tmp/sl6-srpm-nilfs2/the_nilfs.o
CC [M] /tmp/sl6-srpm-nilfs2/segbuf.o
/tmp/sl6-srpm-nilfs2/segbuf.c: In function ‘nilfs_segbuf_write’:
/tmp/sl6-srpm-nilfs2/segbuf.c:396: error: ‘REQ_UNPLUG’ undeclared (first
use in this function)
/tmp/sl6-srpm-nilfs2/segbuf.c:396: error: (Each undeclared identifier is
reported only once
/tmp/sl6-srpm-nilfs2/segbuf.c:396: error: for each function it appears in.)
make[1]: *** [/tmp/sl6-srpm-nilfs2/segbuf.o] Error 1
make: *** [_module_/tmp/sl6-srpm-nilfs2] Error 2
make: Leaving directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
then, i also tried with original kernel code from kernel.org,
linux-2.6.32.27.
in this case, make is done successfully and i got nilfs2.ko.
copy the .ko, modprobe it, and make nilfs2 partition following the guide
on the web.
after mounting the partition, dmesg reports:
segctord starting. Construction interval = 5 seconds, CP frequency < 30
seconds
------------[ cut here ]------------
WARNING: at block/blk-core.c:1244 __make_request+0x525/0x5a0() (Not tainted)
block: BARRIER is deprecated, use FLUSH/FUA instead
Modules linked in: nilfs2(U) autofs4 nfs lockd fscache nfs_acl
auth_rpcgss sunrpc xenfs ipv6 ipt_REJECT nf_conntrack_ipv4
nf_defrag_ipv4 xt_state nf_conntrack iptable_filter ip_tables dm_mirror
dm_region_hash dm_log microcode xen_netfront ext4 mbcache jbd2
xen_blkfront dm_mod [last unloaded: scsi_wait_scan]
Pid: 1649, comm: mount.nilfs2 Not tainted 2.6.32-131.17.1.el6.x86_64 #1
Call Trace:
[<ffffffff810670f7>] ? warn_slowpath_common+0x87/0xc0
[<ffffffff81007c4f>] ? xen_restore_fl_direct_end+0x0/0x1
[<ffffffff810671e6>] ? warn_slowpath_fmt+0x46/0x50
[<ffffffff8124ad55>] ? __make_request+0x525/0x5a0
[<ffffffff81007c62>] ? check_events+0x12/0x20
[<ffffffff8124920e>] ? generic_make_request+0x21e/0x5b0
[<ffffffff8124962f>] ? submit_bio+0x8f/0x120
[<ffffffff811a2ab6>] ? submit_bh+0xf6/0x150
[<ffffffff811a4df3>] ? __sync_dirty_buffer+0x53/0xf0
[<ffffffff811a4ea3>] ? sync_dirty_buffer+0x13/0x20
[<ffffffffa02367d5>] ? nilfs_commit_super+0x175/0x2e0 [nilfs2]
[<ffffffffa0236b6e>] ? nilfs_setup_super+0x7e/0xc0 [nilfs2]
[<ffffffffa0237518>] ? nilfs_get_sb+0x578/0x730 [nilfs2]
[<ffffffff8115473a>] ? alloc_pages_current+0xaa/0x110
[<ffffffff8117569b>] ? vfs_kern_mount+0x7b/0x1b0
[<ffffffff81175842>] ? do_kern_mount+0x52/0x130
[<ffffffff81193317>] ? do_mount+0x2e7/0x870
[<ffffffff81190df2>] ? copy_mount_options+0xf2/0x1a0
[<ffffffff81193930>] ? sys_mount+0x90/0xe0
[<ffffffff8100b172>] ? system_call_fastpath+0x16/0x1b
---[ end trace 75b36a1725360299 ]---
NILFS warning (device xvdb1): nilfs_sync_super: barrier-based sync
failed. disabling barriers
file operations are working fine. i can write and read files.
but i tried to unmount the partition, kernel panics.
BUG: unable to handle kernel NULL pointer dereference at 0000000000000229
IP: [<ffffffff8112533e>] __remove_mapping+0x8e/0x160
(snip)
Call Trace:
remove_mapping, invalidate_inode_page, invalidate_mapping_pages,
__wait_on_buffer,
__sync_dirty_buffer, nilfs_mdt_clear, nilfs_detach_checkpoint,
nilfs_put_super,
generic_shutdown_super, kill_block_super, ...
---
Kernel panic - not syncing: Fatal exception
Pid: 1635, comm: umount.nilfs2 Tainted: G D W
how should i do to use nilfs on SL6 environment?
or do you have any plan to release CentOS6 package of nilfs?
my environment: Scientific Linux 6.1 x64 on XenServer 5.6 SP2.
Shingo TAKADA
--
takada-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: nilfs2 on Scientific Linux 6
[not found] ` <4EBA295D.3060400-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org>
@ 2011-11-10 4:20 ` Ryusuke Konishi
[not found] ` <20111110.132055.135291500.ryusuke-sG5X7nlA6pw@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Ryusuke Konishi @ 2011-11-10 4:20 UTC (permalink / raw)
To: takada-tMH8t/rmczD1BV07Z2N/PQ; +Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA
Hi,
On Wed, 09 Nov 2011 16:18:53 +0900, Shingo TAKADA wrote:
> hi.
>
> I'm trying to use nilfs2 on Scientific Linux 6.1 with kernel
> 2.6.32-131.17.1.el6.x86_64.
> currently, there's no official package for SL6.1 (and RHEL6),
> so i tried to build rpm package using CentOS 5's srpm.
>
> i installed nilfs-kmod-2.0.22-4.src.rpm, extract nilfs-2.0.22.tar.bz2 and
> tried to make, but fails like:
>
> $ pwd
> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs
> $ make -C /usr/src/kernels/2.6.32-131.17.1.el6.x86_64 M=`pwd`
> make: Entering directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
> LD /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/built-in.o
> CC [M] /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.o
> In file included from /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.c:28:
> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/nilfs.h: In function ‘nilfs_init_acl’:
> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/nilfs.h:234: error: dereferencing
> pointer to incomplete type
> make[1]: *** [/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.o] Error 1
> make: *** [_module_/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs] Error 2
> make: Leaving directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>
>
> I installed SL6.1's kernel Source RPM(srpm) , try to make from the
> sources in the srpm. i installed kernel-2.6.32-131.17.1.el6.src.rpm
> using yumdownloader.
>
> but fails like:
> $ pwd
> /tmp/sl6-srpm-nilfs2
> $ make -C /usr/src/kernels/2.6.32-131.17.1.el6.x86_64 M=`pwd`
> make: Entering directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
> LD /tmp/sl6-srpm-nilfs2/built-in.o
> CC [M] /tmp/sl6-srpm-nilfs2/inode.o
> CC [M] /tmp/sl6-srpm-nilfs2/file.o
> CC [M] /tmp/sl6-srpm-nilfs2/dir.o
> CC [M] /tmp/sl6-srpm-nilfs2/super.o
> CC [M] /tmp/sl6-srpm-nilfs2/namei.o
> CC [M] /tmp/sl6-srpm-nilfs2/page.o
> CC [M] /tmp/sl6-srpm-nilfs2/mdt.o
> CC [M] /tmp/sl6-srpm-nilfs2/btnode.o
> CC [M] /tmp/sl6-srpm-nilfs2/bmap.o
> CC [M] /tmp/sl6-srpm-nilfs2/btree.o
> CC [M] /tmp/sl6-srpm-nilfs2/direct.o
> CC [M] /tmp/sl6-srpm-nilfs2/dat.o
> CC [M] /tmp/sl6-srpm-nilfs2/recovery.o
> CC [M] /tmp/sl6-srpm-nilfs2/the_nilfs.o
> CC [M] /tmp/sl6-srpm-nilfs2/segbuf.o
> /tmp/sl6-srpm-nilfs2/segbuf.c: In function ‘nilfs_segbuf_write’:
> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: ‘REQ_UNPLUG’ undeclared (first
> use in this function)
> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: (Each undeclared identifier is
> reported only once
> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: for each function it appears in.)
> make[1]: *** [/tmp/sl6-srpm-nilfs2/segbuf.o] Error 1
> make: *** [_module_/tmp/sl6-srpm-nilfs2] Error 2
> make: Leaving directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
REQ_UNPLUG was introduced by the following patch (and has gone with
other patch). This seems to be a difference between the vanilla
kernel and the SL6 kernel. Thanks for reporting.
diff --git a/fs/nilfs2/segbuf.c b/fs/nilfs2/segbuf.c
index 2e6a272..4588fb9 100644
--- a/fs/nilfs2/segbuf.c
+++ b/fs/nilfs2/segbuf.c
@@ -508,7 +508,7 @@ static int nilfs_segbuf_write(struct nilfs_segment_buffer *s
egbuf,
* Last BIO is always sent through the following
* submission.
*/
- rw |= (1 << BIO_RW_SYNCIO) | (1 << BIO_RW_UNPLUG);
+ rw |= REQ_SYNC | REQ_UNPLUG;
res = nilfs_segbuf_submit_bio(segbuf, &wi, rw);
}
> how should i do to use nilfs on SL6 environment?
> or do you have any plan to release CentOS6 package of nilfs?
We feel the necessity for creating kmod branch for the Centos6 kernel,
but don't have concrete plan.
Ok, I will try it when I have time. Or, does anyone want to try it?
Thanks,
Ryusuke Konishi
> my environment: Scientific Linux 6.1 x64 on XenServer 5.6 SP2.
>
> Shingo TAKADA
> --
> takada-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply related [flat|nested] 10+ messages in thread
* Re: nilfs2 on Scientific Linux 6
[not found] ` <20111110.132055.135291500.ryusuke-sG5X7nlA6pw@public.gmane.org>
@ 2011-11-12 6:20 ` Shingo TAKADA
[not found] ` <4EBE1010.4030607-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Shingo TAKADA @ 2011-11-12 6:20 UTC (permalink / raw)
To: Ryusuke Konishi; +Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA
Hi
thank you for your advice.
I replace the line, REQ_UNPLUG, with your patch, BIO_RW_UNPLUG in
segbuf.c in SL6's kernel srpm archive.
make is done successfully like 2.6.32.27's case (see my last post),
and kernel panics like 2.6.32.27's case when unmounting the nilfs2
partition...
i rebuilt the nilfs2 partition again after replacing the nilfs2.ko
module and modprobe it.
thanks.
Shingo TAKADA
(11/11/10 13:20), Ryusuke Konishi wrote:
> Hi,
> On Wed, 09 Nov 2011 16:18:53 +0900, Shingo TAKADA wrote:
>> hi.
>>
>> I'm trying to use nilfs2 on Scientific Linux 6.1 with kernel
>> 2.6.32-131.17.1.el6.x86_64.
>> currently, there's no official package for SL6.1 (and RHEL6),
>> so i tried to build rpm package using CentOS 5's srpm.
>>
>> i installed nilfs-kmod-2.0.22-4.src.rpm, extract nilfs-2.0.22.tar.bz2 and
>> tried to make, but fails like:
>>
>> $ pwd
>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs
>> $ make -C /usr/src/kernels/2.6.32-131.17.1.el6.x86_64 M=`pwd`
>> make: Entering directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>> LD /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/built-in.o
>> CC [M] /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.o
>> In file included from /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.c:28:
>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/nilfs.h: In function ‘nilfs_init_acl’:
>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/nilfs.h:234: error: dereferencing
>> pointer to incomplete type
>> make[1]: *** [/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.o] Error 1
>> make: *** [_module_/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs] Error 2
>> make: Leaving directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>>
>>
>> I installed SL6.1's kernel Source RPM(srpm) , try to make from the
>> sources in the srpm. i installed kernel-2.6.32-131.17.1.el6.src.rpm
>> using yumdownloader.
>>
>> but fails like:
>> $ pwd
>> /tmp/sl6-srpm-nilfs2
>> $ make -C /usr/src/kernels/2.6.32-131.17.1.el6.x86_64 M=`pwd`
>> make: Entering directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>> LD /tmp/sl6-srpm-nilfs2/built-in.o
>> CC [M] /tmp/sl6-srpm-nilfs2/inode.o
>> CC [M] /tmp/sl6-srpm-nilfs2/file.o
>> CC [M] /tmp/sl6-srpm-nilfs2/dir.o
>> CC [M] /tmp/sl6-srpm-nilfs2/super.o
>> CC [M] /tmp/sl6-srpm-nilfs2/namei.o
>> CC [M] /tmp/sl6-srpm-nilfs2/page.o
>> CC [M] /tmp/sl6-srpm-nilfs2/mdt.o
>> CC [M] /tmp/sl6-srpm-nilfs2/btnode.o
>> CC [M] /tmp/sl6-srpm-nilfs2/bmap.o
>> CC [M] /tmp/sl6-srpm-nilfs2/btree.o
>> CC [M] /tmp/sl6-srpm-nilfs2/direct.o
>> CC [M] /tmp/sl6-srpm-nilfs2/dat.o
>> CC [M] /tmp/sl6-srpm-nilfs2/recovery.o
>> CC [M] /tmp/sl6-srpm-nilfs2/the_nilfs.o
>> CC [M] /tmp/sl6-srpm-nilfs2/segbuf.o
>> /tmp/sl6-srpm-nilfs2/segbuf.c: In function ‘nilfs_segbuf_write’:
>> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: ‘REQ_UNPLUG’ undeclared (first
>> use in this function)
>> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: (Each undeclared identifier is
>> reported only once
>> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: for each function it appears in.)
>> make[1]: *** [/tmp/sl6-srpm-nilfs2/segbuf.o] Error 1
>> make: *** [_module_/tmp/sl6-srpm-nilfs2] Error 2
>> make: Leaving directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>
> REQ_UNPLUG was introduced by the following patch (and has gone with
> other patch). This seems to be a difference between the vanilla
> kernel and the SL6 kernel. Thanks for reporting.
>
> diff --git a/fs/nilfs2/segbuf.c b/fs/nilfs2/segbuf.c
> index 2e6a272..4588fb9 100644
> --- a/fs/nilfs2/segbuf.c
> +++ b/fs/nilfs2/segbuf.c
> @@ -508,7 +508,7 @@ static int nilfs_segbuf_write(struct nilfs_segment_buffer *s
> egbuf,
> * Last BIO is always sent through the following
> * submission.
> */
> - rw |= (1<< BIO_RW_SYNCIO) | (1<< BIO_RW_UNPLUG);
> + rw |= REQ_SYNC | REQ_UNPLUG;
> res = nilfs_segbuf_submit_bio(segbuf,&wi, rw);
> }
>
>
>> how should i do to use nilfs on SL6 environment?
>> or do you have any plan to release CentOS6 package of nilfs?
>
> We feel the necessity for creating kmod branch for the Centos6 kernel,
> but don't have concrete plan.
>
> Ok, I will try it when I have time. Or, does anyone want to try it?
>
> Thanks,
> Ryusuke Konishi
>
>> my environment: Scientific Linux 6.1 x64 on XenServer 5.6 SP2.
>>
>> Shingo TAKADA
>> --
>> takada-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
takada-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: nilfs2 on Scientific Linux 6
[not found] ` <4EBE1010.4030607-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org>
@ 2011-11-12 18:58 ` Ryusuke Konishi
[not found] ` <20111113.035822.33559163.ryusuke-sG5X7nlA6pw@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Ryusuke Konishi @ 2011-11-12 18:58 UTC (permalink / raw)
To: takada-tMH8t/rmczD1BV07Z2N/PQ; +Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA
Hi,
On Sat, 12 Nov 2011 15:20:00 +0900, Shingo TAKADA wrote:
> Hi
>
> thank you for your advice.
>
> I replace the line, REQ_UNPLUG, with your patch, BIO_RW_UNPLUG in
> segbuf.c in SL6's kernel srpm archive.
>
> make is done successfully like 2.6.32.27's case (see my last post),
> and kernel panics like 2.6.32.27's case when unmounting the nilfs2
> partition...
>
> i rebuilt the nilfs2 partition again after replacing the nilfs2.ko
> module and modprobe it.
I've pushed out a standalone nilfs2 kmod for Centos6 and SL6.
It is available from http://git.nilfs.org/nilfs2-kmod-centos6.git as
follows:
$ git clone http://git.nilfs.org/nilfs2-kmod-centos6.git
$ cd nilfs2-kmod-centos6
$ make
$ sudo make install
It includes important changes and bug-fixes which are backported from
newer kernels. The kmod seems to work fine so far for me. Check it
out.
Regards,
Ryusuke Konishi
> thanks.
> Shingo TAKADA
>
> (11/11/10 13:20), Ryusuke Konishi wrote:
> > Hi,
> > On Wed, 09 Nov 2011 16:18:53 +0900, Shingo TAKADA wrote:
> >> hi.
> >>
> >> I'm trying to use nilfs2 on Scientific Linux 6.1 with kernel
> >> 2.6.32-131.17.1.el6.x86_64.
> >> currently, there's no official package for SL6.1 (and RHEL6),
> >> so i tried to build rpm package using CentOS 5's srpm.
> >>
> >> i installed nilfs-kmod-2.0.22-4.src.rpm, extract nilfs-2.0.22.tar.bz2 and
> >> tried to make, but fails like:
> >>
> >> $ pwd
> >> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs
> >> $ make -C /usr/src/kernels/2.6.32-131.17.1.el6.x86_64 M=`pwd`
> >> make: Entering directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
> >> LD /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/built-in.o
> >> CC [M] /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.o
> >> In file included from /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.c:28:
> >> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/nilfs.h: In function ‘nilfs_init_acl’:
> >> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/nilfs.h:234: error: dereferencing
> >> pointer to incomplete type
> >> make[1]: *** [/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.o] Error 1
> >> make: *** [_module_/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs] Error 2
> >> make: Leaving directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
> >>
> >>
> >> I installed SL6.1's kernel Source RPM(srpm) , try to make from the
> >> sources in the srpm. i installed kernel-2.6.32-131.17.1.el6.src.rpm
> >> using yumdownloader.
> >>
> >> but fails like:
> >> $ pwd
> >> /tmp/sl6-srpm-nilfs2
> >> $ make -C /usr/src/kernels/2.6.32-131.17.1.el6.x86_64 M=`pwd`
> >> make: Entering directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
> >> LD /tmp/sl6-srpm-nilfs2/built-in.o
> >> CC [M] /tmp/sl6-srpm-nilfs2/inode.o
> >> CC [M] /tmp/sl6-srpm-nilfs2/file.o
> >> CC [M] /tmp/sl6-srpm-nilfs2/dir.o
> >> CC [M] /tmp/sl6-srpm-nilfs2/super.o
> >> CC [M] /tmp/sl6-srpm-nilfs2/namei.o
> >> CC [M] /tmp/sl6-srpm-nilfs2/page.o
> >> CC [M] /tmp/sl6-srpm-nilfs2/mdt.o
> >> CC [M] /tmp/sl6-srpm-nilfs2/btnode.o
> >> CC [M] /tmp/sl6-srpm-nilfs2/bmap.o
> >> CC [M] /tmp/sl6-srpm-nilfs2/btree.o
> >> CC [M] /tmp/sl6-srpm-nilfs2/direct.o
> >> CC [M] /tmp/sl6-srpm-nilfs2/dat.o
> >> CC [M] /tmp/sl6-srpm-nilfs2/recovery.o
> >> CC [M] /tmp/sl6-srpm-nilfs2/the_nilfs.o
> >> CC [M] /tmp/sl6-srpm-nilfs2/segbuf.o
> >> /tmp/sl6-srpm-nilfs2/segbuf.c: In function ‘nilfs_segbuf_write’:
> >> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: ‘REQ_UNPLUG’ undeclared (first
> >> use in this function)
> >> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: (Each undeclared identifier is
> >> reported only once
> >> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: for each function it appears in.)
> >> make[1]: *** [/tmp/sl6-srpm-nilfs2/segbuf.o] Error 1
> >> make: *** [_module_/tmp/sl6-srpm-nilfs2] Error 2
> >> make: Leaving directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
> >
> > REQ_UNPLUG was introduced by the following patch (and has gone with
> > other patch). This seems to be a difference between the vanilla
> > kernel and the SL6 kernel. Thanks for reporting.
> >
> > diff --git a/fs/nilfs2/segbuf.c b/fs/nilfs2/segbuf.c
> > index 2e6a272..4588fb9 100644
> > --- a/fs/nilfs2/segbuf.c
> > +++ b/fs/nilfs2/segbuf.c
> > @@ -508,7 +508,7 @@ static int nilfs_segbuf_write(struct nilfs_segment_buffer *s
> > egbuf,
> > * Last BIO is always sent through the following
> > * submission.
> > */
> > - rw |= (1<< BIO_RW_SYNCIO) | (1<< BIO_RW_UNPLUG);
> > + rw |= REQ_SYNC | REQ_UNPLUG;
> > res = nilfs_segbuf_submit_bio(segbuf,&wi, rw);
> > }
> >
> >
> >> how should i do to use nilfs on SL6 environment?
> >> or do you have any plan to release CentOS6 package of nilfs?
> >
> > We feel the necessity for creating kmod branch for the Centos6 kernel,
> > but don't have concrete plan.
> >
> > Ok, I will try it when I have time. Or, does anyone want to try it?
> >
> > Thanks,
> > Ryusuke Konishi
> >
> >> my environment: Scientific Linux 6.1 x64 on XenServer 5.6 SP2.
> >>
> >> Shingo TAKADA
> >> --
> >> takada-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org
> >> --
> >> To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
> >> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> >> More majordomo info at http://vger.kernel.org/majordomo-info.html
> >
>
> --
> takada-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: nilfs2 on Scientific Linux 6
[not found] ` <20111113.035822.33559163.ryusuke-sG5X7nlA6pw@public.gmane.org>
@ 2011-11-19 8:19 ` Shingo TAKADA
[not found] ` <4EC76694.6070601-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Shingo TAKADA @ 2011-11-19 8:19 UTC (permalink / raw)
To: Ryusuke Konishi; +Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA
Hi
i cloned the centos6 repo and confirmed nilfs2 works fine!
there's no kernel panics happend on my environment, lscp and unmount
works well. thank you very much.
then, i'm trying to build rpm package of the centos6 kmod.
but i'm not familiar with rpm and kernel modules.
i'm reusing SPEC file from centos5's nilfs srpm.
kmodtool is renewed in RHEL6, replace with it.
in SPEC file, build and install section, SPEC file calls
make with "modules" and "modules_install" argument.
Makefile in the centos6-kmod repo has no such rules.
how should i fix Makefile or SPEC file?
thanks.
Shingo TAKADA
(11/11/13 3:58), Ryusuke Konishi wrote:
> Hi,
> On Sat, 12 Nov 2011 15:20:00 +0900, Shingo TAKADA wrote:
>> Hi
>>
>> thank you for your advice.
>>
>> I replace the line, REQ_UNPLUG, with your patch, BIO_RW_UNPLUG in
>> segbuf.c in SL6's kernel srpm archive.
>>
>> make is done successfully like 2.6.32.27's case (see my last post),
>> and kernel panics like 2.6.32.27's case when unmounting the nilfs2
>> partition...
>>
>> i rebuilt the nilfs2 partition again after replacing the nilfs2.ko
>> module and modprobe it.
>
> I've pushed out a standalone nilfs2 kmod for Centos6 and SL6.
>
> It is available from http://git.nilfs.org/nilfs2-kmod-centos6.git as
> follows:
>
> $ git clone http://git.nilfs.org/nilfs2-kmod-centos6.git
> $ cd nilfs2-kmod-centos6
> $ make
> $ sudo make install
>
> It includes important changes and bug-fixes which are backported from
> newer kernels. The kmod seems to work fine so far for me. Check it
> out.
>
>
> Regards,
> Ryusuke Konishi
>
>> thanks.
>> Shingo TAKADA
>>
>> (11/11/10 13:20), Ryusuke Konishi wrote:
>>> Hi,
>>> On Wed, 09 Nov 2011 16:18:53 +0900, Shingo TAKADA wrote:
>>>> hi.
>>>>
>>>> I'm trying to use nilfs2 on Scientific Linux 6.1 with kernel
>>>> 2.6.32-131.17.1.el6.x86_64.
>>>> currently, there's no official package for SL6.1 (and RHEL6),
>>>> so i tried to build rpm package using CentOS 5's srpm.
>>>>
>>>> i installed nilfs-kmod-2.0.22-4.src.rpm, extract nilfs-2.0.22.tar.bz2 and
>>>> tried to make, but fails like:
>>>>
>>>> $ pwd
>>>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs
>>>> $ make -C /usr/src/kernels/2.6.32-131.17.1.el6.x86_64 M=`pwd`
>>>> make: Entering directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>>>> LD /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/built-in.o
>>>> CC [M] /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.o
>>>> In file included from /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.c:28:
>>>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/nilfs.h: In function ‘nilfs_init_acl’:
>>>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/nilfs.h:234: error: dereferencing
>>>> pointer to incomplete type
>>>> make[1]: *** [/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.o] Error 1
>>>> make: *** [_module_/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs] Error 2
>>>> make: Leaving directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>>>>
>>>>
>>>> I installed SL6.1's kernel Source RPM(srpm) , try to make from the
>>>> sources in the srpm. i installed kernel-2.6.32-131.17.1.el6.src.rpm
>>>> using yumdownloader.
>>>>
>>>> but fails like:
>>>> $ pwd
>>>> /tmp/sl6-srpm-nilfs2
>>>> $ make -C /usr/src/kernels/2.6.32-131.17.1.el6.x86_64 M=`pwd`
>>>> make: Entering directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>>>> LD /tmp/sl6-srpm-nilfs2/built-in.o
>>>> CC [M] /tmp/sl6-srpm-nilfs2/inode.o
>>>> CC [M] /tmp/sl6-srpm-nilfs2/file.o
>>>> CC [M] /tmp/sl6-srpm-nilfs2/dir.o
>>>> CC [M] /tmp/sl6-srpm-nilfs2/super.o
>>>> CC [M] /tmp/sl6-srpm-nilfs2/namei.o
>>>> CC [M] /tmp/sl6-srpm-nilfs2/page.o
>>>> CC [M] /tmp/sl6-srpm-nilfs2/mdt.o
>>>> CC [M] /tmp/sl6-srpm-nilfs2/btnode.o
>>>> CC [M] /tmp/sl6-srpm-nilfs2/bmap.o
>>>> CC [M] /tmp/sl6-srpm-nilfs2/btree.o
>>>> CC [M] /tmp/sl6-srpm-nilfs2/direct.o
>>>> CC [M] /tmp/sl6-srpm-nilfs2/dat.o
>>>> CC [M] /tmp/sl6-srpm-nilfs2/recovery.o
>>>> CC [M] /tmp/sl6-srpm-nilfs2/the_nilfs.o
>>>> CC [M] /tmp/sl6-srpm-nilfs2/segbuf.o
>>>> /tmp/sl6-srpm-nilfs2/segbuf.c: In function ‘nilfs_segbuf_write’:
>>>> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: ‘REQ_UNPLUG’ undeclared (first
>>>> use in this function)
>>>> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: (Each undeclared identifier is
>>>> reported only once
>>>> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: for each function it appears in.)
>>>> make[1]: *** [/tmp/sl6-srpm-nilfs2/segbuf.o] Error 1
>>>> make: *** [_module_/tmp/sl6-srpm-nilfs2] Error 2
>>>> make: Leaving directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>>>
>>> REQ_UNPLUG was introduced by the following patch (and has gone with
>>> other patch). This seems to be a difference between the vanilla
>>> kernel and the SL6 kernel. Thanks for reporting.
>>>
>>> diff --git a/fs/nilfs2/segbuf.c b/fs/nilfs2/segbuf.c
>>> index 2e6a272..4588fb9 100644
>>> --- a/fs/nilfs2/segbuf.c
>>> +++ b/fs/nilfs2/segbuf.c
>>> @@ -508,7 +508,7 @@ static int nilfs_segbuf_write(struct nilfs_segment_buffer *s
>>> egbuf,
>>> * Last BIO is always sent through the following
>>> * submission.
>>> */
>>> - rw |= (1<< BIO_RW_SYNCIO) | (1<< BIO_RW_UNPLUG);
>>> + rw |= REQ_SYNC | REQ_UNPLUG;
>>> res = nilfs_segbuf_submit_bio(segbuf,&wi, rw);
>>> }
>>>
>>>
>>>> how should i do to use nilfs on SL6 environment?
>>>> or do you have any plan to release CentOS6 package of nilfs?
>>>
>>> We feel the necessity for creating kmod branch for the Centos6 kernel,
>>> but don't have concrete plan.
>>>
>>> Ok, I will try it when I have time. Or, does anyone want to try it?
>>>
>>> Thanks,
>>> Ryusuke Konishi
>>>
>>>> my environment: Scientific Linux 6.1 x64 on XenServer 5.6 SP2.
>>>>
>>>> Shingo TAKADA
>>>> --
>>>> takada-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org
>>>> --
>>>> To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
>>>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>>
>>
>> --
>> takada-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
--
takada-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: nilfs2 on Scientific Linux 6
[not found] ` <4EC76694.6070601-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org>
@ 2011-11-19 14:53 ` Ryusuke Konishi
[not found] ` <20111119.235302.142386436.ryusuke-sG5X7nlA6pw@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Ryusuke Konishi @ 2011-11-19 14:53 UTC (permalink / raw)
To: Shingo TAKADA; +Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA
Hi TAKADA-san,
On Sat, 19 Nov 2011 17:19:32 +0900, Shingo TAKADA wrote:
> Hi
>
> i cloned the centos6 repo and confirmed nilfs2 works fine!
> there's no kernel panics happend on my environment, lscp and unmount
> works well. thank you very much.
>
>
> then, i'm trying to build rpm package of the centos6 kmod.
> but i'm not familiar with rpm and kernel modules.
>
> i'm reusing SPEC file from centos5's nilfs srpm.
> kmodtool is renewed in RHEL6, replace with it.
>
> in SPEC file, build and install section, SPEC file calls
> make with "modules" and "modules_install" argument.
> Makefile in the centos6-kmod repo has no such rules.
>
> how should i fix Makefile or SPEC file?
You may change both files.
I'm not familiar with rpm build, too. But, I guess it's possible to
add modules and modules_install targets to makefiles in the
nilfs2-kmod package to handle the change.
Send us back the patch when well done. I will apply it to my
centos6-kmod tree. (At least for changes against makefiles).
Thanks,
Ryusuke Konishi
> thanks.
> Shingo TAKADA
>
> (11/11/13 3:58), Ryusuke Konishi wrote:
> > Hi,
> > On Sat, 12 Nov 2011 15:20:00 +0900, Shingo TAKADA wrote:
> >> Hi
> >>
> >> thank you for your advice.
> >>
> >> I replace the line, REQ_UNPLUG, with your patch, BIO_RW_UNPLUG in
> >> segbuf.c in SL6's kernel srpm archive.
> >>
> >> make is done successfully like 2.6.32.27's case (see my last post),
> >> and kernel panics like 2.6.32.27's case when unmounting the nilfs2
> >> partition...
> >>
> >> i rebuilt the nilfs2 partition again after replacing the nilfs2.ko
> >> module and modprobe it.
> >
> > I've pushed out a standalone nilfs2 kmod for Centos6 and SL6.
> >
> > It is available from http://git.nilfs.org/nilfs2-kmod-centos6.git as
> > follows:
> >
> > $ git clone http://git.nilfs.org/nilfs2-kmod-centos6.git
> > $ cd nilfs2-kmod-centos6
> > $ make
> > $ sudo make install
> >
> > It includes important changes and bug-fixes which are backported from
> > newer kernels. The kmod seems to work fine so far for me. Check it
> > out.
> >
> >
> > Regards,
> > Ryusuke Konishi
> >
> >> thanks.
> >> Shingo TAKADA
> >>
> >> (11/11/10 13:20), Ryusuke Konishi wrote:
> >>> Hi,
> >>> On Wed, 09 Nov 2011 16:18:53 +0900, Shingo TAKADA wrote:
> >>>> hi.
> >>>>
> >>>> I'm trying to use nilfs2 on Scientific Linux 6.1 with kernel
> >>>> 2.6.32-131.17.1.el6.x86_64.
> >>>> currently, there's no official package for SL6.1 (and RHEL6),
> >>>> so i tried to build rpm package using CentOS 5's srpm.
> >>>>
> >>>> i installed nilfs-kmod-2.0.22-4.src.rpm, extract nilfs-2.0.22.tar.bz2 and
> >>>> tried to make, but fails like:
> >>>>
> >>>> $ pwd
> >>>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs
> >>>> $ make -C /usr/src/kernels/2.6.32-131.17.1.el6.x86_64 M=`pwd`
> >>>> make: Entering directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
> >>>> LD /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/built-in.o
> >>>> CC [M] /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.o
> >>>> In file included from /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.c:28:
> >>>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/nilfs.h: In function ‘nilfs_init_acl’:
> >>>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/nilfs.h:234: error: dereferencing
> >>>> pointer to incomplete type
> >>>> make[1]: *** [/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.o] Error 1
> >>>> make: *** [_module_/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs] Error 2
> >>>> make: Leaving directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
> >>>>
> >>>>
> >>>> I installed SL6.1's kernel Source RPM(srpm) , try to make from the
> >>>> sources in the srpm. i installed kernel-2.6.32-131.17.1.el6.src.rpm
> >>>> using yumdownloader.
> >>>>
> >>>> but fails like:
> >>>> $ pwd
> >>>> /tmp/sl6-srpm-nilfs2
> >>>> $ make -C /usr/src/kernels/2.6.32-131.17.1.el6.x86_64 M=`pwd`
> >>>> make: Entering directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
> >>>> LD /tmp/sl6-srpm-nilfs2/built-in.o
> >>>> CC [M] /tmp/sl6-srpm-nilfs2/inode.o
> >>>> CC [M] /tmp/sl6-srpm-nilfs2/file.o
> >>>> CC [M] /tmp/sl6-srpm-nilfs2/dir.o
> >>>> CC [M] /tmp/sl6-srpm-nilfs2/super.o
> >>>> CC [M] /tmp/sl6-srpm-nilfs2/namei.o
> >>>> CC [M] /tmp/sl6-srpm-nilfs2/page.o
> >>>> CC [M] /tmp/sl6-srpm-nilfs2/mdt.o
> >>>> CC [M] /tmp/sl6-srpm-nilfs2/btnode.o
> >>>> CC [M] /tmp/sl6-srpm-nilfs2/bmap.o
> >>>> CC [M] /tmp/sl6-srpm-nilfs2/btree.o
> >>>> CC [M] /tmp/sl6-srpm-nilfs2/direct.o
> >>>> CC [M] /tmp/sl6-srpm-nilfs2/dat.o
> >>>> CC [M] /tmp/sl6-srpm-nilfs2/recovery.o
> >>>> CC [M] /tmp/sl6-srpm-nilfs2/the_nilfs.o
> >>>> CC [M] /tmp/sl6-srpm-nilfs2/segbuf.o
> >>>> /tmp/sl6-srpm-nilfs2/segbuf.c: In function ‘nilfs_segbuf_write’:
> >>>> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: ‘REQ_UNPLUG’ undeclared (first
> >>>> use in this function)
> >>>> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: (Each undeclared identifier is
> >>>> reported only once
> >>>> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: for each function it appears in.)
> >>>> make[1]: *** [/tmp/sl6-srpm-nilfs2/segbuf.o] Error 1
> >>>> make: *** [_module_/tmp/sl6-srpm-nilfs2] Error 2
> >>>> make: Leaving directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
> >>>
> >>> REQ_UNPLUG was introduced by the following patch (and has gone with
> >>> other patch). This seems to be a difference between the vanilla
> >>> kernel and the SL6 kernel. Thanks for reporting.
> >>>
> >>> diff --git a/fs/nilfs2/segbuf.c b/fs/nilfs2/segbuf.c
> >>> index 2e6a272..4588fb9 100644
> >>> --- a/fs/nilfs2/segbuf.c
> >>> +++ b/fs/nilfs2/segbuf.c
> >>> @@ -508,7 +508,7 @@ static int nilfs_segbuf_write(struct nilfs_segment_buffer *s
> >>> egbuf,
> >>> * Last BIO is always sent through the following
> >>> * submission.
> >>> */
> >>> - rw |= (1<< BIO_RW_SYNCIO) | (1<< BIO_RW_UNPLUG);
> >>> + rw |= REQ_SYNC | REQ_UNPLUG;
> >>> res = nilfs_segbuf_submit_bio(segbuf,&wi, rw);
> >>> }
> >>>
> >>>
> >>>> how should i do to use nilfs on SL6 environment?
> >>>> or do you have any plan to release CentOS6 package of nilfs?
> >>>
> >>> We feel the necessity for creating kmod branch for the Centos6 kernel,
> >>> but don't have concrete plan.
> >>>
> >>> Ok, I will try it when I have time. Or, does anyone want to try it?
> >>>
> >>> Thanks,
> >>> Ryusuke Konishi
> >>>
> >>>> my environment: Scientific Linux 6.1 x64 on XenServer 5.6 SP2.
> >>>>
> >>>> Shingo TAKADA
> >>>> --
> >>>> takada-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org
> >>>> --
> >>>> To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
> >>>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> >>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
> >>>
> >>
> >> --
> >> takada-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org
> >> --
> >> To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
> >> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> >> More majordomo info at http://vger.kernel.org/majordomo-info.html
> >
>
> --
> takada-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: nilfs2 on Scientific Linux 6
[not found] ` <20111119.235302.142386436.ryusuke-sG5X7nlA6pw@public.gmane.org>
@ 2011-11-29 3:48 ` Seiji Kihara
[not found] ` <CA+G-kwVLmzddBcJKN69z1t+eE9=PxZTzvHLtQs2Wj-cF5BxfJQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Seiji Kihara @ 2011-11-29 3:48 UTC (permalink / raw)
To: Shingo TAKADA, linux-nilfs-u79uwXL29TY76Z2rM5mHXA
Hello Takada-san and all,
I made RPM packages of nilfs2-kmod and nilfs-utils for RHEL 6 clones.
They are placed at the NILFS site below:
http://www.nilfs.org/pub/centos/6/SRPMS/
http://www.nilfs.org/pub/centos/6/RPMS/x86_64/
http://www.nilfs.org/pub/centos/6/RPMS/i686/
Any feedback is welcome.
Regards,
Seiji Kihara
At 2011/11/19 23:53, Ryusuke Konishi <konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org> wrote:
> Hi TAKADA-san,
> On Sat, 19 Nov 2011 17:19:32 +0900, Shingo TAKADA wrote:
>> Hi
>>
>> i cloned the centos6 repo and confirmed nilfs2 works fine!
>> there's no kernel panics happend on my environment, lscp and unmount
>> works well. thank you very much.
>>
>>
>> then, i'm trying to build rpm package of the centos6 kmod.
>> but i'm not familiar with rpm and kernel modules.
>>
>> i'm reusing SPEC file from centos5's nilfs srpm.
>> kmodtool is renewed in RHEL6, replace with it.
>>
>> in SPEC file, build and install section, SPEC file calls
>> make with "modules" and "modules_install" argument.
>> Makefile in the centos6-kmod repo has no such rules.
>>
>> how should i fix Makefile or SPEC file?
>
> You may change both files.
>
> I'm not familiar with rpm build, too. But, I guess it's possible to
> add modules and modules_install targets to makefiles in the
> nilfs2-kmod package to handle the change.
>
> Send us back the patch when well done. I will apply it to my
> centos6-kmod tree. (At least for changes against makefiles).
>
>
> Thanks,
> Ryusuke Konishi
>
>
>> thanks.
>> Shingo TAKADA
>>
>> (11/11/13 3:58), Ryusuke Konishi wrote:
>> > Hi,
>> > On Sat, 12 Nov 2011 15:20:00 +0900, Shingo TAKADA wrote:
>> >> Hi
>> >>
>> >> thank you for your advice.
>> >>
>> >> I replace the line, REQ_UNPLUG, with your patch, BIO_RW_UNPLUG in
>> >> segbuf.c in SL6's kernel srpm archive.
>> >>
>> >> make is done successfully like 2.6.32.27's case (see my last post),
>> >> and kernel panics like 2.6.32.27's case when unmounting the nilfs2
>> >> partition...
>> >>
>> >> i rebuilt the nilfs2 partition again after replacing the nilfs2.ko
>> >> module and modprobe it.
>> >
>> > I've pushed out a standalone nilfs2 kmod for Centos6 and SL6.
>> >
>> > It is available from http://git.nilfs.org/nilfs2-kmod-centos6.git as
>> > follows:
>> >
>> > $ git clone http://git.nilfs.org/nilfs2-kmod-centos6.git
>> > $ cd nilfs2-kmod-centos6
>> > $ make
>> > $ sudo make install
>> >
>> > It includes important changes and bug-fixes which are backported from
>> > newer kernels. The kmod seems to work fine so far for me. Check it
>> > out.
>> >
>> >
>> > Regards,
>> > Ryusuke Konishi
>> >
>> >> thanks.
>> >> Shingo TAKADA
>> >>
>> >> (11/11/10 13:20), Ryusuke Konishi wrote:
>> >>> Hi,
>> >>> On Wed, 09 Nov 2011 16:18:53 +0900, Shingo TAKADA wrote:
>> >>>> hi.
>> >>>>
>> >>>> I'm trying to use nilfs2 on Scientific Linux 6.1 with kernel
>> >>>> 2.6.32-131.17.1.el6.x86_64.
>> >>>> currently, there's no official package for SL6.1 (and RHEL6),
>> >>>> so i tried to build rpm package using CentOS 5's srpm.
>> >>>>
>> >>>> i installed nilfs-kmod-2.0.22-4.src.rpm, extract nilfs-2.0.22.tar.bz2 and
>> >>>> tried to make, but fails like:
>> >>>>
>> >>>> $ pwd
>> >>>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs
>> >>>> $ make -C /usr/src/kernels/2.6.32-131.17.1.el6.x86_64 M=`pwd`
>> >>>> make: Entering directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>> >>>> LD /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/built-in.o
>> >>>> CC [M] /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.o
>> >>>> In file included from /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.c:28:
>> >>>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/nilfs.h: In function ‘nilfs_init_acl’:
>> >>>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/nilfs.h:234: error: dereferencing
>> >>>> pointer to incomplete type
>> >>>> make[1]: *** [/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.o] Error 1
>> >>>> make: *** [_module_/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs] Error 2
>> >>>> make: Leaving directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>> >>>>
>> >>>>
>> >>>> I installed SL6.1's kernel Source RPM(srpm) , try to make from the
>> >>>> sources in the srpm. i installed kernel-2.6.32-131.17.1.el6.src.rpm
>> >>>> using yumdownloader.
>> >>>>
>> >>>> but fails like:
>> >>>> $ pwd
>> >>>> /tmp/sl6-srpm-nilfs2
>> >>>> $ make -C /usr/src/kernels/2.6.32-131.17.1.el6.x86_64 M=`pwd`
>> >>>> make: Entering directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>> >>>> LD /tmp/sl6-srpm-nilfs2/built-in.o
>> >>>> CC [M] /tmp/sl6-srpm-nilfs2/inode.o
>> >>>> CC [M] /tmp/sl6-srpm-nilfs2/file.o
>> >>>> CC [M] /tmp/sl6-srpm-nilfs2/dir.o
>> >>>> CC [M] /tmp/sl6-srpm-nilfs2/super.o
>> >>>> CC [M] /tmp/sl6-srpm-nilfs2/namei.o
>> >>>> CC [M] /tmp/sl6-srpm-nilfs2/page.o
>> >>>> CC [M] /tmp/sl6-srpm-nilfs2/mdt.o
>> >>>> CC [M] /tmp/sl6-srpm-nilfs2/btnode.o
>> >>>> CC [M] /tmp/sl6-srpm-nilfs2/bmap.o
>> >>>> CC [M] /tmp/sl6-srpm-nilfs2/btree.o
>> >>>> CC [M] /tmp/sl6-srpm-nilfs2/direct.o
>> >>>> CC [M] /tmp/sl6-srpm-nilfs2/dat.o
>> >>>> CC [M] /tmp/sl6-srpm-nilfs2/recovery.o
>> >>>> CC [M] /tmp/sl6-srpm-nilfs2/the_nilfs.o
>> >>>> CC [M] /tmp/sl6-srpm-nilfs2/segbuf.o
>> >>>> /tmp/sl6-srpm-nilfs2/segbuf.c: In function ‘nilfs_segbuf_write’:
>> >>>> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: ‘REQ_UNPLUG’ undeclared (first
>> >>>> use in this function)
>> >>>> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: (Each undeclared identifier is
>> >>>> reported only once
>> >>>> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: for each function it appears in.)
>> >>>> make[1]: *** [/tmp/sl6-srpm-nilfs2/segbuf.o] Error 1
>> >>>> make: *** [_module_/tmp/sl6-srpm-nilfs2] Error 2
>> >>>> make: Leaving directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>> >>>
>> >>> REQ_UNPLUG was introduced by the following patch (and has gone with
>> >>> other patch). This seems to be a difference between the vanilla
>> >>> kernel and the SL6 kernel. Thanks for reporting.
>> >>>
>> >>> diff --git a/fs/nilfs2/segbuf.c b/fs/nilfs2/segbuf.c
>> >>> index 2e6a272..4588fb9 100644
>> >>> --- a/fs/nilfs2/segbuf.c
>> >>> +++ b/fs/nilfs2/segbuf.c
>> >>> @@ -508,7 +508,7 @@ static int nilfs_segbuf_write(struct nilfs_segment_buffer *s
>> >>> egbuf,
>> >>> * Last BIO is always sent through the following
>> >>> * submission.
>> >>> */
>> >>> - rw |= (1<< BIO_RW_SYNCIO) | (1<< BIO_RW_UNPLUG);
>> >>> + rw |= REQ_SYNC | REQ_UNPLUG;
>> >>> res = nilfs_segbuf_submit_bio(segbuf,&wi, rw);
>> >>> }
>> >>>
>> >>>
>> >>>> how should i do to use nilfs on SL6 environment?
>> >>>> or do you have any plan to release CentOS6 package of nilfs?
>> >>>
>> >>> We feel the necessity for creating kmod branch for the Centos6 kernel,
>> >>> but don't have concrete plan.
>> >>>
>> >>> Ok, I will try it when I have time. Or, does anyone want to try it?
>> >>>
>> >>> Thanks,
>> >>> Ryusuke Konishi
>> >>>
>> >>>> my environment: Scientific Linux 6.1 x64 on XenServer 5.6 SP2.
>> >>>>
>> >>>> Shingo TAKADA
>> >>>> --
>> >>>> takada-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: nilfs2 on Scientific Linux 6
[not found] ` <CA+G-kwVLmzddBcJKN69z1t+eE9=PxZTzvHLtQs2Wj-cF5BxfJQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2011-11-30 7:34 ` Shingo TAKADA
[not found] ` <4ED5DC9A.8050602-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Shingo TAKADA @ 2011-11-30 7:34 UTC (permalink / raw)
To: Seiji Kihara; +Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA
Hi, Kihara-san and all
thank you for your rpm release.
i installed to my SL6.1 x64 environment, it works fine.
(mount, lscp, mkcp, mount -o cp=n, umount are checked)
but there's a bug in the kmod-nilfs2 rpm uninstall script.
when i try to uninstall the kmod rpm, fails like:
[root@testbed2 ~]# rpm -ev kmod-nilfs2
Freeing read locks for locker 0x5f: 20505/140619693737888
Freeing read locks for locker 0x61: 20505/140619693737888
error: ^%{kmod_version}$: regcomp failed: Invalid content of \{\}
error: %preun(kmod-nilfs2-0.3.0-0.el6.x86_64) scriptlet failed, exit
status 1
this is caused by kmodtool-nilfs2-el6 script:
cat <<EOF
%preun -n kmod-${kmod_name}${dashvariant}
rpm -ql
kmod-${kmod_name}${dashvariant}-%{kmod_version}-%{kmod_release}.$(arch)
| grep '\.ko$' > /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules
EOF
the variables "%{kmod_version}" and "%{kmod_release}" will not be
expanded when the rpm package is going to be removed.
i found this in recent days, try to build rpm package by myself,
i can't understand that why these variable is placed on here.
(remove these variables, still works fine)
this part specifies the package name, so i think there's no necessity
for the variables.
on my environment, applying this patch fixes the uninstall problem.
--- kmodtool-nilfs2-el6.org 2011-11-30 16:20:53.471728124 +0900
+++ kmodtool-nilfs2-el6 2011-11-30 16:21:06.553726633 +0900
@@ -172,7 +172,7 @@
cat <<EOF
%preun -n kmod-${kmod_name}${dashvariant}
-rpm -ql
kmod-${kmod_name}${dashvariant}-%{kmod_version}-%{kmod_release}.$(arch)
| grep '\.ko$' > /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules
+rpm -ql kmod-${kmod_name}${dashvariant} | grep '\.ko$' >
/var/run/rpm-kmod-${kmod_name}${dashvariant}-modules
EOF
cat <<EOF
thanks.
(11/11/29 12:48), Seiji Kihara wrote:
> Hello Takada-san and all,
>
> I made RPM packages of nilfs2-kmod and nilfs-utils for RHEL 6 clones.
> They are placed at the NILFS site below:
>
> http://www.nilfs.org/pub/centos/6/SRPMS/
> http://www.nilfs.org/pub/centos/6/RPMS/x86_64/
> http://www.nilfs.org/pub/centos/6/RPMS/i686/
>
> Any feedback is welcome.
>
> Regards,
>
> Seiji Kihara
>
> At 2011/11/19 23:53, Ryusuke Konishi<konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org> wrote:
>> Hi TAKADA-san,
>> On Sat, 19 Nov 2011 17:19:32 +0900, Shingo TAKADA wrote:
>>> Hi
>>>
>>> i cloned the centos6 repo and confirmed nilfs2 works fine!
>>> there's no kernel panics happend on my environment, lscp and unmount
>>> works well. thank you very much.
>>>
>>>
>>> then, i'm trying to build rpm package of the centos6 kmod.
>>> but i'm not familiar with rpm and kernel modules.
>>>
>>> i'm reusing SPEC file from centos5's nilfs srpm.
>>> kmodtool is renewed in RHEL6, replace with it.
>>>
>>> in SPEC file, build and install section, SPEC file calls
>>> make with "modules" and "modules_install" argument.
>>> Makefile in the centos6-kmod repo has no such rules.
>>>
>>> how should i fix Makefile or SPEC file?
>>
>> You may change both files.
>>
>> I'm not familiar with rpm build, too. But, I guess it's possible to
>> add modules and modules_install targets to makefiles in the
>> nilfs2-kmod package to handle the change.
>>
>> Send us back the patch when well done. I will apply it to my
>> centos6-kmod tree. (At least for changes against makefiles).
>>
>>
>> Thanks,
>> Ryusuke Konishi
>>
>>
>>> thanks.
>>> Shingo TAKADA
>>>
>>> (11/11/13 3:58), Ryusuke Konishi wrote:
>>>> Hi,
>>>> On Sat, 12 Nov 2011 15:20:00 +0900, Shingo TAKADA wrote:
>>>>> Hi
>>>>>
>>>>> thank you for your advice.
>>>>>
>>>>> I replace the line, REQ_UNPLUG, with your patch, BIO_RW_UNPLUG in
>>>>> segbuf.c in SL6's kernel srpm archive.
>>>>>
>>>>> make is done successfully like 2.6.32.27's case (see my last post),
>>>>> and kernel panics like 2.6.32.27's case when unmounting the nilfs2
>>>>> partition...
>>>>>
>>>>> i rebuilt the nilfs2 partition again after replacing the nilfs2.ko
>>>>> module and modprobe it.
>>>>
>>>> I've pushed out a standalone nilfs2 kmod for Centos6 and SL6.
>>>>
>>>> It is available from http://git.nilfs.org/nilfs2-kmod-centos6.git as
>>>> follows:
>>>>
>>>> $ git clone http://git.nilfs.org/nilfs2-kmod-centos6.git
>>>> $ cd nilfs2-kmod-centos6
>>>> $ make
>>>> $ sudo make install
>>>>
>>>> It includes important changes and bug-fixes which are backported from
>>>> newer kernels. The kmod seems to work fine so far for me. Check it
>>>> out.
>>>>
>>>>
>>>> Regards,
>>>> Ryusuke Konishi
>>>>
>>>>> thanks.
>>>>> Shingo TAKADA
>>>>>
>>>>> (11/11/10 13:20), Ryusuke Konishi wrote:
>>>>>> Hi,
>>>>>> On Wed, 09 Nov 2011 16:18:53 +0900, Shingo TAKADA wrote:
>>>>>>> hi.
>>>>>>>
>>>>>>> I'm trying to use nilfs2 on Scientific Linux 6.1 with kernel
>>>>>>> 2.6.32-131.17.1.el6.x86_64.
>>>>>>> currently, there's no official package for SL6.1 (and RHEL6),
>>>>>>> so i tried to build rpm package using CentOS 5's srpm.
>>>>>>>
>>>>>>> i installed nilfs-kmod-2.0.22-4.src.rpm, extract nilfs-2.0.22.tar.bz2 and
>>>>>>> tried to make, but fails like:
>>>>>>>
>>>>>>> $ pwd
>>>>>>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs
>>>>>>> $ make -C /usr/src/kernels/2.6.32-131.17.1.el6.x86_64 M=`pwd`
>>>>>>> make: Entering directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>>>>>>> LD /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/built-in.o
>>>>>>> CC [M] /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.o
>>>>>>> In file included from /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.c:28:
>>>>>>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/nilfs.h: In function ‘nilfs_init_acl’:
>>>>>>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/nilfs.h:234: error: dereferencing
>>>>>>> pointer to incomplete type
>>>>>>> make[1]: *** [/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.o] Error 1
>>>>>>> make: *** [_module_/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs] Error 2
>>>>>>> make: Leaving directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>>>>>>>
>>>>>>>
>>>>>>> I installed SL6.1's kernel Source RPM(srpm) , try to make from the
>>>>>>> sources in the srpm. i installed kernel-2.6.32-131.17.1.el6.src.rpm
>>>>>>> using yumdownloader.
>>>>>>>
>>>>>>> but fails like:
>>>>>>> $ pwd
>>>>>>> /tmp/sl6-srpm-nilfs2
>>>>>>> $ make -C /usr/src/kernels/2.6.32-131.17.1.el6.x86_64 M=`pwd`
>>>>>>> make: Entering directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>>>>>>> LD /tmp/sl6-srpm-nilfs2/built-in.o
>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/inode.o
>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/file.o
>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/dir.o
>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/super.o
>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/namei.o
>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/page.o
>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/mdt.o
>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/btnode.o
>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/bmap.o
>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/btree.o
>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/direct.o
>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/dat.o
>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/recovery.o
>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/the_nilfs.o
>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/segbuf.o
>>>>>>> /tmp/sl6-srpm-nilfs2/segbuf.c: In function ‘nilfs_segbuf_write’:
>>>>>>> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: ‘REQ_UNPLUG’ undeclared (first
>>>>>>> use in this function)
>>>>>>> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: (Each undeclared identifier is
>>>>>>> reported only once
>>>>>>> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: for each function it appears in.)
>>>>>>> make[1]: *** [/tmp/sl6-srpm-nilfs2/segbuf.o] Error 1
>>>>>>> make: *** [_module_/tmp/sl6-srpm-nilfs2] Error 2
>>>>>>> make: Leaving directory `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>>>>>>
>>>>>> REQ_UNPLUG was introduced by the following patch (and has gone with
>>>>>> other patch). This seems to be a difference between the vanilla
>>>>>> kernel and the SL6 kernel. Thanks for reporting.
>>>>>>
>>>>>> diff --git a/fs/nilfs2/segbuf.c b/fs/nilfs2/segbuf.c
>>>>>> index 2e6a272..4588fb9 100644
>>>>>> --- a/fs/nilfs2/segbuf.c
>>>>>> +++ b/fs/nilfs2/segbuf.c
>>>>>> @@ -508,7 +508,7 @@ static int nilfs_segbuf_write(struct nilfs_segment_buffer *s
>>>>>> egbuf,
>>>>>> * Last BIO is always sent through the following
>>>>>> * submission.
>>>>>> */
>>>>>> - rw |= (1<< BIO_RW_SYNCIO) | (1<< BIO_RW_UNPLUG);
>>>>>> + rw |= REQ_SYNC | REQ_UNPLUG;
>>>>>> res = nilfs_segbuf_submit_bio(segbuf,&wi, rw);
>>>>>> }
>>>>>>
>>>>>>
>>>>>>> how should i do to use nilfs on SL6 environment?
>>>>>>> or do you have any plan to release CentOS6 package of nilfs?
>>>>>>
>>>>>> We feel the necessity for creating kmod branch for the Centos6 kernel,
>>>>>> but don't have concrete plan.
>>>>>>
>>>>>> Ok, I will try it when I have time. Or, does anyone want to try it?
>>>>>>
>>>>>> Thanks,
>>>>>> Ryusuke Konishi
>>>>>>
>>>>>>> my environment: Scientific Linux 6.1 x64 on XenServer 5.6 SP2.
>>>>>>>
>>>>>>> Shingo TAKADA
>>>>>>> --
>>>>>>> takada-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
Shingo TAKADA
--
takada-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: nilfs2 on Scientific Linux 6
[not found] ` <4ED5DC9A.8050602-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org>
@ 2011-11-30 9:37 ` Seiji Kihara
[not found] ` <CA+G-kwWfHJvA_TP9D7nzUeDmkHnBagVvDjhEbN0XWaG8fBvxEQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
0 siblings, 1 reply; 10+ messages in thread
From: Seiji Kihara @ 2011-11-30 9:37 UTC (permalink / raw)
To: Shingo TAKADA; +Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA
Hi Takada-san,
Thank you for your feedback. I will fix it.
Thanks,
Seiji Kihara
2011/11/30 Shingo TAKADA <takada-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org>:
> Hi, Kihara-san and all
>
> thank you for your rpm release.
> i installed to my SL6.1 x64 environment, it works fine.
> (mount, lscp, mkcp, mount -o cp=n, umount are checked)
>
> but there's a bug in the kmod-nilfs2 rpm uninstall script.
> when i try to uninstall the kmod rpm, fails like:
>
> [root@testbed2 ~]# rpm -ev kmod-nilfs2
> Freeing read locks for locker 0x5f: 20505/140619693737888
> Freeing read locks for locker 0x61: 20505/140619693737888
> error: ^%{kmod_version}$: regcomp failed: Invalid content of \{\}
> error: %preun(kmod-nilfs2-0.3.0-0.el6.x86_64) scriptlet failed, exit status
> 1
>
> this is caused by kmodtool-nilfs2-el6 script:
>
> cat <<EOF
> %preun -n kmod-${kmod_name}${dashvariant}
> rpm -ql
> kmod-${kmod_name}${dashvariant}-%{kmod_version}-%{kmod_release}.$(arch) |
> grep '\.ko$' > /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules
> EOF
>
> the variables "%{kmod_version}" and "%{kmod_release}" will not be expanded
> when the rpm package is going to be removed.
> i found this in recent days, try to build rpm package by myself,
> i can't understand that why these variable is placed on here.
> (remove these variables, still works fine)
>
> this part specifies the package name, so i think there's no necessity for
> the variables.
>
> on my environment, applying this patch fixes the uninstall problem.
>
> --- kmodtool-nilfs2-el6.org 2011-11-30 16:20:53.471728124 +0900
> +++ kmodtool-nilfs2-el6 2011-11-30 16:21:06.553726633 +0900
> @@ -172,7 +172,7 @@
>
> cat <<EOF
> %preun -n kmod-${kmod_name}${dashvariant}
> -rpm -ql
> kmod-${kmod_name}${dashvariant}-%{kmod_version}-%{kmod_release}.$(arch) |
> grep '\.ko$' > /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules
> +rpm -ql kmod-${kmod_name}${dashvariant} | grep '\.ko$' >
> /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules
> EOF
>
> cat <<EOF
>
> thanks.
>
>
> (11/11/29 12:48), Seiji Kihara wrote:
>>
>> Hello Takada-san and all,
>>
>> I made RPM packages of nilfs2-kmod and nilfs-utils for RHEL 6 clones.
>> They are placed at the NILFS site below:
>>
>> http://www.nilfs.org/pub/centos/6/SRPMS/
>> http://www.nilfs.org/pub/centos/6/RPMS/x86_64/
>> http://www.nilfs.org/pub/centos/6/RPMS/i686/
>>
>> Any feedback is welcome.
>>
>> Regards,
>>
>> Seiji Kihara
>>
>> At 2011/11/19 23:53, Ryusuke Konishi<konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org>
>> wrote:
>>>
>>> Hi TAKADA-san,
>>> On Sat, 19 Nov 2011 17:19:32 +0900, Shingo TAKADA wrote:
>>>>
>>>> Hi
>>>>
>>>> i cloned the centos6 repo and confirmed nilfs2 works fine!
>>>> there's no kernel panics happend on my environment, lscp and unmount
>>>> works well. thank you very much.
>>>>
>>>>
>>>> then, i'm trying to build rpm package of the centos6 kmod.
>>>> but i'm not familiar with rpm and kernel modules.
>>>>
>>>> i'm reusing SPEC file from centos5's nilfs srpm.
>>>> kmodtool is renewed in RHEL6, replace with it.
>>>>
>>>> in SPEC file, build and install section, SPEC file calls
>>>> make with "modules" and "modules_install" argument.
>>>> Makefile in the centos6-kmod repo has no such rules.
>>>>
>>>> how should i fix Makefile or SPEC file?
>>>
>>>
>>> You may change both files.
>>>
>>> I'm not familiar with rpm build, too. But, I guess it's possible to
>>> add modules and modules_install targets to makefiles in the
>>> nilfs2-kmod package to handle the change.
>>>
>>> Send us back the patch when well done. I will apply it to my
>>> centos6-kmod tree. (At least for changes against makefiles).
>>>
>>>
>>> Thanks,
>>> Ryusuke Konishi
>>>
>>>
>>>> thanks.
>>>> Shingo TAKADA
>>>>
>>>> (11/11/13 3:58), Ryusuke Konishi wrote:
>>>>>
>>>>> Hi,
>>>>> On Sat, 12 Nov 2011 15:20:00 +0900, Shingo TAKADA wrote:
>>>>>>
>>>>>> Hi
>>>>>>
>>>>>> thank you for your advice.
>>>>>>
>>>>>> I replace the line, REQ_UNPLUG, with your patch, BIO_RW_UNPLUG in
>>>>>> segbuf.c in SL6's kernel srpm archive.
>>>>>>
>>>>>> make is done successfully like 2.6.32.27's case (see my last post),
>>>>>> and kernel panics like 2.6.32.27's case when unmounting the nilfs2
>>>>>> partition...
>>>>>>
>>>>>> i rebuilt the nilfs2 partition again after replacing the nilfs2.ko
>>>>>> module and modprobe it.
>>>>>
>>>>>
>>>>> I've pushed out a standalone nilfs2 kmod for Centos6 and SL6.
>>>>>
>>>>> It is available from http://git.nilfs.org/nilfs2-kmod-centos6.git as
>>>>> follows:
>>>>>
>>>>> $ git clone http://git.nilfs.org/nilfs2-kmod-centos6.git
>>>>> $ cd nilfs2-kmod-centos6
>>>>> $ make
>>>>> $ sudo make install
>>>>>
>>>>> It includes important changes and bug-fixes which are backported from
>>>>> newer kernels. The kmod seems to work fine so far for me. Check it
>>>>> out.
>>>>>
>>>>>
>>>>> Regards,
>>>>> Ryusuke Konishi
>>>>>
>>>>>> thanks.
>>>>>> Shingo TAKADA
>>>>>>
>>>>>> (11/11/10 13:20), Ryusuke Konishi wrote:
>>>>>>>
>>>>>>> Hi,
>>>>>>> On Wed, 09 Nov 2011 16:18:53 +0900, Shingo TAKADA wrote:
>>>>>>>>
>>>>>>>> hi.
>>>>>>>>
>>>>>>>> I'm trying to use nilfs2 on Scientific Linux 6.1 with kernel
>>>>>>>> 2.6.32-131.17.1.el6.x86_64.
>>>>>>>> currently, there's no official package for SL6.1 (and RHEL6),
>>>>>>>> so i tried to build rpm package using CentOS 5's srpm.
>>>>>>>>
>>>>>>>> i installed nilfs-kmod-2.0.22-4.src.rpm, extract
>>>>>>>> nilfs-2.0.22.tar.bz2 and
>>>>>>>> tried to make, but fails like:
>>>>>>>>
>>>>>>>> $ pwd
>>>>>>>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs
>>>>>>>> $ make -C /usr/src/kernels/2.6.32-131.17.1.el6.x86_64 M=`pwd`
>>>>>>>> make: Entering directory
>>>>>>>> `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>>>>>>>> LD /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/built-in.o
>>>>>>>> CC [M] /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.o
>>>>>>>> In file included from
>>>>>>>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.c:28:
>>>>>>>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/nilfs.h: In function
>>>>>>>> ‘nilfs_init_acl’:
>>>>>>>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/nilfs.h:234: error:
>>>>>>>> dereferencing
>>>>>>>> pointer to incomplete type
>>>>>>>> make[1]: *** [/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.o] Error 1
>>>>>>>> make: *** [_module_/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs] Error 2
>>>>>>>> make: Leaving directory
>>>>>>>> `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>>>>>>>>
>>>>>>>>
>>>>>>>> I installed SL6.1's kernel Source RPM(srpm) , try to make from the
>>>>>>>> sources in the srpm. i installed kernel-2.6.32-131.17.1.el6.src.rpm
>>>>>>>> using yumdownloader.
>>>>>>>>
>>>>>>>> but fails like:
>>>>>>>> $ pwd
>>>>>>>> /tmp/sl6-srpm-nilfs2
>>>>>>>> $ make -C /usr/src/kernels/2.6.32-131.17.1.el6.x86_64 M=`pwd`
>>>>>>>> make: Entering directory
>>>>>>>> `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>>>>>>>> LD /tmp/sl6-srpm-nilfs2/built-in.o
>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/inode.o
>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/file.o
>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/dir.o
>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/super.o
>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/namei.o
>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/page.o
>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/mdt.o
>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/btnode.o
>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/bmap.o
>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/btree.o
>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/direct.o
>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/dat.o
>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/recovery.o
>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/the_nilfs.o
>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/segbuf.o
>>>>>>>> /tmp/sl6-srpm-nilfs2/segbuf.c: In function ‘nilfs_segbuf_write’:
>>>>>>>> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: ‘REQ_UNPLUG’ undeclared
>>>>>>>> (first
>>>>>>>> use in this function)
>>>>>>>> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: (Each undeclared
>>>>>>>> identifier is
>>>>>>>> reported only once
>>>>>>>> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: for each function it
>>>>>>>> appears in.)
>>>>>>>> make[1]: *** [/tmp/sl6-srpm-nilfs2/segbuf.o] Error 1
>>>>>>>> make: *** [_module_/tmp/sl6-srpm-nilfs2] Error 2
>>>>>>>> make: Leaving directory
>>>>>>>> `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>>>>>>>
>>>>>>>
>>>>>>> REQ_UNPLUG was introduced by the following patch (and has gone with
>>>>>>> other patch). This seems to be a difference between the vanilla
>>>>>>> kernel and the SL6 kernel. Thanks for reporting.
>>>>>>>
>>>>>>> diff --git a/fs/nilfs2/segbuf.c b/fs/nilfs2/segbuf.c
>>>>>>> index 2e6a272..4588fb9 100644
>>>>>>> --- a/fs/nilfs2/segbuf.c
>>>>>>> +++ b/fs/nilfs2/segbuf.c
>>>>>>> @@ -508,7 +508,7 @@ static int nilfs_segbuf_write(struct
>>>>>>> nilfs_segment_buffer *s
>>>>>>> egbuf,
>>>>>>> * Last BIO is always sent through the following
>>>>>>> * submission.
>>>>>>> */
>>>>>>> - rw |= (1<< BIO_RW_SYNCIO) | (1<<
>>>>>>> BIO_RW_UNPLUG);
>>>>>>> + rw |= REQ_SYNC | REQ_UNPLUG;
>>>>>>> res = nilfs_segbuf_submit_bio(segbuf,&wi, rw);
>>>>>>> }
>>>>>>>
>>>>>>>
>>>>>>>> how should i do to use nilfs on SL6 environment?
>>>>>>>> or do you have any plan to release CentOS6 package of nilfs?
>>>>>>>
>>>>>>>
>>>>>>> We feel the necessity for creating kmod branch for the Centos6
>>>>>>> kernel,
>>>>>>> but don't have concrete plan.
>>>>>>>
>>>>>>> Ok, I will try it when I have time. Or, does anyone want to try it?
>>>>>>>
>>>>>>> Thanks,
>>>>>>> Ryusuke Konishi
>>>>>>>
>>>>>>>> my environment: Scientific Linux 6.1 x64 on XenServer 5.6 SP2.
>>>>>>>>
>>>>>>>> Shingo TAKADA
>>>>>>>> --
>>>>>>>> takada-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org
>>
>> --
>>
>> To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>
>
> Shingo TAKADA
> --
> takada-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org
> --
> To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
木原 誠司
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: nilfs2 on Scientific Linux 6
[not found] ` <CA+G-kwWfHJvA_TP9D7nzUeDmkHnBagVvDjhEbN0XWaG8fBvxEQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
@ 2011-11-30 14:58 ` Seiji Kihara
0 siblings, 0 replies; 10+ messages in thread
From: Seiji Kihara @ 2011-11-30 14:58 UTC (permalink / raw)
To: Shingo TAKADA; +Cc: linux-nilfs-u79uwXL29TY76Z2rM5mHXA
Hello Takada-san and all,
The fix by Takada-san was incorporated in nilfs2-kmod-0.3.0-1.el6.src.rpm.
You can find fixed RPMs in the NILFS site.
Enjoy!
Seiji Kihara
2011年11月30日18:37 Seiji Kihara <kihara-sG5X7nlA6pw@public.gmane.org>:
> Hi Takada-san,
>
> Thank you for your feedback. I will fix it.
>
> Thanks,
>
> Seiji Kihara
>
> 2011/11/30 Shingo TAKADA <takada-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org>:
>> Hi, Kihara-san and all
>>
>> thank you for your rpm release.
>> i installed to my SL6.1 x64 environment, it works fine.
>> (mount, lscp, mkcp, mount -o cp=n, umount are checked)
>>
>> but there's a bug in the kmod-nilfs2 rpm uninstall script.
>> when i try to uninstall the kmod rpm, fails like:
>>
>> [root@testbed2 ~]# rpm -ev kmod-nilfs2
>> Freeing read locks for locker 0x5f: 20505/140619693737888
>> Freeing read locks for locker 0x61: 20505/140619693737888
>> error: ^%{kmod_version}$: regcomp failed: Invalid content of \{\}
>> error: %preun(kmod-nilfs2-0.3.0-0.el6.x86_64) scriptlet failed, exit status
>> 1
>>
>> this is caused by kmodtool-nilfs2-el6 script:
>>
>> cat <<EOF
>> %preun -n kmod-${kmod_name}${dashvariant}
>> rpm -ql
>> kmod-${kmod_name}${dashvariant}-%{kmod_version}-%{kmod_release}.$(arch) |
>> grep '\.ko$' > /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules
>> EOF
>>
>> the variables "%{kmod_version}" and "%{kmod_release}" will not be expanded
>> when the rpm package is going to be removed.
>> i found this in recent days, try to build rpm package by myself,
>> i can't understand that why these variable is placed on here.
>> (remove these variables, still works fine)
>>
>> this part specifies the package name, so i think there's no necessity for
>> the variables.
>>
>> on my environment, applying this patch fixes the uninstall problem.
>>
>> --- kmodtool-nilfs2-el6.org 2011-11-30 16:20:53.471728124 +0900
>> +++ kmodtool-nilfs2-el6 2011-11-30 16:21:06.553726633 +0900
>> @@ -172,7 +172,7 @@
>>
>> cat <<EOF
>> %preun -n kmod-${kmod_name}${dashvariant}
>> -rpm -ql
>> kmod-${kmod_name}${dashvariant}-%{kmod_version}-%{kmod_release}.$(arch) |
>> grep '\.ko$' > /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules
>> +rpm -ql kmod-${kmod_name}${dashvariant} | grep '\.ko$' >
>> /var/run/rpm-kmod-${kmod_name}${dashvariant}-modules
>> EOF
>>
>> cat <<EOF
>>
>> thanks.
>>
>>
>> (11/11/29 12:48), Seiji Kihara wrote:
>>>
>>> Hello Takada-san and all,
>>>
>>> I made RPM packages of nilfs2-kmod and nilfs-utils for RHEL 6 clones.
>>> They are placed at the NILFS site below:
>>>
>>> http://www.nilfs.org/pub/centos/6/SRPMS/
>>> http://www.nilfs.org/pub/centos/6/RPMS/x86_64/
>>> http://www.nilfs.org/pub/centos/6/RPMS/i686/
>>>
>>> Any feedback is welcome.
>>>
>>> Regards,
>>>
>>> Seiji Kihara
>>>
>>> At 2011/11/19 23:53, Ryusuke Konishi<konishi.ryusuke-Zyj7fXuS5i5L9jVzuh4AOg@public.gmane.org>
>>> wrote:
>>>>
>>>> Hi TAKADA-san,
>>>> On Sat, 19 Nov 2011 17:19:32 +0900, Shingo TAKADA wrote:
>>>>>
>>>>> Hi
>>>>>
>>>>> i cloned the centos6 repo and confirmed nilfs2 works fine!
>>>>> there's no kernel panics happend on my environment, lscp and unmount
>>>>> works well. thank you very much.
>>>>>
>>>>>
>>>>> then, i'm trying to build rpm package of the centos6 kmod.
>>>>> but i'm not familiar with rpm and kernel modules.
>>>>>
>>>>> i'm reusing SPEC file from centos5's nilfs srpm.
>>>>> kmodtool is renewed in RHEL6, replace with it.
>>>>>
>>>>> in SPEC file, build and install section, SPEC file calls
>>>>> make with "modules" and "modules_install" argument.
>>>>> Makefile in the centos6-kmod repo has no such rules.
>>>>>
>>>>> how should i fix Makefile or SPEC file?
>>>>
>>>>
>>>> You may change both files.
>>>>
>>>> I'm not familiar with rpm build, too. But, I guess it's possible to
>>>> add modules and modules_install targets to makefiles in the
>>>> nilfs2-kmod package to handle the change.
>>>>
>>>> Send us back the patch when well done. I will apply it to my
>>>> centos6-kmod tree. (At least for changes against makefiles).
>>>>
>>>>
>>>> Thanks,
>>>> Ryusuke Konishi
>>>>
>>>>
>>>>> thanks.
>>>>> Shingo TAKADA
>>>>>
>>>>> (11/11/13 3:58), Ryusuke Konishi wrote:
>>>>>>
>>>>>> Hi,
>>>>>> On Sat, 12 Nov 2011 15:20:00 +0900, Shingo TAKADA wrote:
>>>>>>>
>>>>>>> Hi
>>>>>>>
>>>>>>> thank you for your advice.
>>>>>>>
>>>>>>> I replace the line, REQ_UNPLUG, with your patch, BIO_RW_UNPLUG in
>>>>>>> segbuf.c in SL6's kernel srpm archive.
>>>>>>>
>>>>>>> make is done successfully like 2.6.32.27's case (see my last post),
>>>>>>> and kernel panics like 2.6.32.27's case when unmounting the nilfs2
>>>>>>> partition...
>>>>>>>
>>>>>>> i rebuilt the nilfs2 partition again after replacing the nilfs2.ko
>>>>>>> module and modprobe it.
>>>>>>
>>>>>>
>>>>>> I've pushed out a standalone nilfs2 kmod for Centos6 and SL6.
>>>>>>
>>>>>> It is available from http://git.nilfs.org/nilfs2-kmod-centos6.git as
>>>>>> follows:
>>>>>>
>>>>>> $ git clone http://git.nilfs.org/nilfs2-kmod-centos6.git
>>>>>> $ cd nilfs2-kmod-centos6
>>>>>> $ make
>>>>>> $ sudo make install
>>>>>>
>>>>>> It includes important changes and bug-fixes which are backported from
>>>>>> newer kernels. The kmod seems to work fine so far for me. Check it
>>>>>> out.
>>>>>>
>>>>>>
>>>>>> Regards,
>>>>>> Ryusuke Konishi
>>>>>>
>>>>>>> thanks.
>>>>>>> Shingo TAKADA
>>>>>>>
>>>>>>> (11/11/10 13:20), Ryusuke Konishi wrote:
>>>>>>>>
>>>>>>>> Hi,
>>>>>>>> On Wed, 09 Nov 2011 16:18:53 +0900, Shingo TAKADA wrote:
>>>>>>>>>
>>>>>>>>> hi.
>>>>>>>>>
>>>>>>>>> I'm trying to use nilfs2 on Scientific Linux 6.1 with kernel
>>>>>>>>> 2.6.32-131.17.1.el6.x86_64.
>>>>>>>>> currently, there's no official package for SL6.1 (and RHEL6),
>>>>>>>>> so i tried to build rpm package using CentOS 5's srpm.
>>>>>>>>>
>>>>>>>>> i installed nilfs-kmod-2.0.22-4.src.rpm, extract
>>>>>>>>> nilfs-2.0.22.tar.bz2 and
>>>>>>>>> tried to make, but fails like:
>>>>>>>>>
>>>>>>>>> $ pwd
>>>>>>>>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs
>>>>>>>>> $ make -C /usr/src/kernels/2.6.32-131.17.1.el6.x86_64 M=`pwd`
>>>>>>>>> make: Entering directory
>>>>>>>>> `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>>>>>>>>> LD /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/built-in.o
>>>>>>>>> CC [M] /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.o
>>>>>>>>> In file included from
>>>>>>>>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.c:28:
>>>>>>>>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/nilfs.h: In function
>>>>>>>>> ‘nilfs_init_acl’:
>>>>>>>>> /tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/nilfs.h:234: error:
>>>>>>>>> dereferencing
>>>>>>>>> pointer to incomplete type
>>>>>>>>> make[1]: *** [/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs/inode.o] Error 1
>>>>>>>>> make: *** [_module_/tmp/rpmbuild/SOURCES/nilfs-2.0.22/fs] Error 2
>>>>>>>>> make: Leaving directory
>>>>>>>>> `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> I installed SL6.1's kernel Source RPM(srpm) , try to make from the
>>>>>>>>> sources in the srpm. i installed kernel-2.6.32-131.17.1.el6.src.rpm
>>>>>>>>> using yumdownloader.
>>>>>>>>>
>>>>>>>>> but fails like:
>>>>>>>>> $ pwd
>>>>>>>>> /tmp/sl6-srpm-nilfs2
>>>>>>>>> $ make -C /usr/src/kernels/2.6.32-131.17.1.el6.x86_64 M=`pwd`
>>>>>>>>> make: Entering directory
>>>>>>>>> `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>>>>>>>>> LD /tmp/sl6-srpm-nilfs2/built-in.o
>>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/inode.o
>>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/file.o
>>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/dir.o
>>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/super.o
>>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/namei.o
>>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/page.o
>>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/mdt.o
>>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/btnode.o
>>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/bmap.o
>>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/btree.o
>>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/direct.o
>>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/dat.o
>>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/recovery.o
>>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/the_nilfs.o
>>>>>>>>> CC [M] /tmp/sl6-srpm-nilfs2/segbuf.o
>>>>>>>>> /tmp/sl6-srpm-nilfs2/segbuf.c: In function ‘nilfs_segbuf_write’:
>>>>>>>>> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: ‘REQ_UNPLUG’ undeclared
>>>>>>>>> (first
>>>>>>>>> use in this function)
>>>>>>>>> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: (Each undeclared
>>>>>>>>> identifier is
>>>>>>>>> reported only once
>>>>>>>>> /tmp/sl6-srpm-nilfs2/segbuf.c:396: error: for each function it
>>>>>>>>> appears in.)
>>>>>>>>> make[1]: *** [/tmp/sl6-srpm-nilfs2/segbuf.o] Error 1
>>>>>>>>> make: *** [_module_/tmp/sl6-srpm-nilfs2] Error 2
>>>>>>>>> make: Leaving directory
>>>>>>>>> `/usr/src/kernels/2.6.32-131.17.1.el6.x86_64'
>>>>>>>>
>>>>>>>>
>>>>>>>> REQ_UNPLUG was introduced by the following patch (and has gone with
>>>>>>>> other patch). This seems to be a difference between the vanilla
>>>>>>>> kernel and the SL6 kernel. Thanks for reporting.
>>>>>>>>
>>>>>>>> diff --git a/fs/nilfs2/segbuf.c b/fs/nilfs2/segbuf.c
>>>>>>>> index 2e6a272..4588fb9 100644
>>>>>>>> --- a/fs/nilfs2/segbuf.c
>>>>>>>> +++ b/fs/nilfs2/segbuf.c
>>>>>>>> @@ -508,7 +508,7 @@ static int nilfs_segbuf_write(struct
>>>>>>>> nilfs_segment_buffer *s
>>>>>>>> egbuf,
>>>>>>>> * Last BIO is always sent through the following
>>>>>>>> * submission.
>>>>>>>> */
>>>>>>>> - rw |= (1<< BIO_RW_SYNCIO) | (1<<
>>>>>>>> BIO_RW_UNPLUG);
>>>>>>>> + rw |= REQ_SYNC | REQ_UNPLUG;
>>>>>>>> res = nilfs_segbuf_submit_bio(segbuf,&wi, rw);
>>>>>>>> }
>>>>>>>>
>>>>>>>>
>>>>>>>>> how should i do to use nilfs on SL6 environment?
>>>>>>>>> or do you have any plan to release CentOS6 package of nilfs?
>>>>>>>>
>>>>>>>>
>>>>>>>> We feel the necessity for creating kmod branch for the Centos6
>>>>>>>> kernel,
>>>>>>>> but don't have concrete plan.
>>>>>>>>
>>>>>>>> Ok, I will try it when I have time. Or, does anyone want to try it?
>>>>>>>>
>>>>>>>> Thanks,
>>>>>>>> Ryusuke Konishi
>>>>>>>>
>>>>>>>>> my environment: Scientific Linux 6.1 x64 on XenServer 5.6 SP2.
>>>>>>>>>
>>>>>>>>> Shingo TAKADA
>>>>>>>>> --
>>>>>>>>> takada-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org
>>>
>>> --
>>>
>>> To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
>>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>>
>>
>> Shingo TAKADA
>> --
>> takada-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>
>
>
> --
> 木原 誠司
--
木原 誠司
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 10+ messages in thread
end of thread, other threads:[~2011-11-30 14:58 UTC | newest]
Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-09 7:18 nilfs2 on Scientific Linux 6 Shingo TAKADA
[not found] ` <4EBA295D.3060400-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org>
2011-11-10 4:20 ` Ryusuke Konishi
[not found] ` <20111110.132055.135291500.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-11-12 6:20 ` Shingo TAKADA
[not found] ` <4EBE1010.4030607-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org>
2011-11-12 18:58 ` Ryusuke Konishi
[not found] ` <20111113.035822.33559163.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-11-19 8:19 ` Shingo TAKADA
[not found] ` <4EC76694.6070601-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org>
2011-11-19 14:53 ` Ryusuke Konishi
[not found] ` <20111119.235302.142386436.ryusuke-sG5X7nlA6pw@public.gmane.org>
2011-11-29 3:48 ` Seiji Kihara
[not found] ` <CA+G-kwVLmzddBcJKN69z1t+eE9=PxZTzvHLtQs2Wj-cF5BxfJQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-30 7:34 ` Shingo TAKADA
[not found] ` <4ED5DC9A.8050602-tMH8t/rmczD1BV07Z2N/PQ@public.gmane.org>
2011-11-30 9:37 ` Seiji Kihara
[not found] ` <CA+G-kwWfHJvA_TP9D7nzUeDmkHnBagVvDjhEbN0XWaG8fBvxEQ-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-11-30 14:58 ` Seiji Kihara
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.