stec-inc / EnhanceIO

EnhanceIO Open Source for Linux
Other
420 stars 177 forks source link

cache create fails on 32 bit os #28

Closed knitin closed 11 years ago

knitin commented 11 years ago

OS: CentOS Linux release 6.0 (Final) 32 bit

[root@localhost ~]# cat /etc/redhat-release

CentOS Linux release 6.0 (Final)

Kernel: 3.7.10

[root@localhost ~]# uname -r

3.7.10

Steps:

When trying to create cache, I am getting following error

[root@localhost ~]# eio_cli create -d /dev/sdc -s /dev/sdb -p fifo -m wt -b 4096 -c CACHE

Traceback (most recent call last):

File "/sbin/eio_cli", line 457, in

main()

File "/sbin/eio_cli", line 390, in main

cache.create()

File "/sbin/eio_cli", line 271, in create

src_sz.get_device_size_info(self.src_name)

File "/sbin/eio_cli", line 327, in get_device_size_info

buf = ioctl(fd, IOC_BLKGETSIZE64, buf)

IOError: [Errno 22] Invalid argument

sanoj-stec commented 11 years ago

Fixed in the commit 1d99161530758a601c084f64743dc26a742508e9