zfs-linux / zfs

Native ZFS for Linux
http://wiki.github.com/behlendorf/zfs/
Other
56 stars 2 forks source link

BIO_RW_SYNC undeclared #114

Open Fedor-zz opened 13 years ago

Fedor-zz commented 13 years ago

[kido@Arch64] $ uname -a

Linux Arch64 2.6.36-ARCH #1 SMP PREEMPT Mon Jan 24 18:41:03 CET 2011 x86_64 AMD Phenom(tm) II X4 965 Processor AuthenticAMD GNU/Linux

When compiling zfs from master, there's an error:

CC [M] /home/kido/source/zfs/zfs-kqi-git/src/zfs-build/module/zfs/../../module/zfs/vdev_label.o /home/kido/source/zfs/zfs-kqi-git/src/zfs-build/module/zfs/../../module/zfs/vdev_disk.c: In function ‘vdev_disk_physio_completion’: /home/kido/source/zfs/zfs-kqi-git/src/zfs-build/module/zfs/../../module/zfs/vdev_disk.c:261:38: error: ‘BIO_RW_SYNC’ undeclared (first use in this function) /home/kido/source/zfs/zfs-kqi-git/src/zfs-build/module/zfs/../../module/zfs/vdev_disk.c:261:38: note: each undeclared identifier is reported only once for each function it appears in /home/kido/source/zfs/zfs-kqi-git/src/zfs-build/module/zfs/../../module/zfs/vdev_disk.c: In function ‘__vdev_disk_physio’: /home/kido/source/zfs/zfs-kqi-git/src/zfs-build/module/zfs/../../module/zfs/vdev_disk.c:398:24: error: ‘BIO_RW_SYNC’ undeclared (first use in this function) make[5]: *\ [/home/kido/source/zfs/zfs-kqi-git/src/zfs-build/module/zfs/../../module/zfs/vdev_disk.o] Error 1

According to my research, that's because there's nothing about "BIO_RW_SYNC" in "configure" file, only about "BIO_RW_SYNCIO".

blind-oracle commented 13 years ago

Use long-term supported kernel 2.6.35, it will compile without any issues. 36+ is not supported at the moment, i've had to rollback to earlier version too because of the compile problems. On 2.6.35.10 it builds perfectly, and as far as i see works quite stable.

Blind55 commented 13 years ago

Well, behlendorf mentions that this has been resolved for his branch - any chance of updating the sources to include his patches (See https://github.com/behlendorf/zfs/ issue 85)?

blind-oracle commented 13 years ago

Anyway, even on 2.6.35 it's not stable. At least in filesystem mode it crashes very frequently.