Hi,nbd team:
This problem has troubled me for a long time
I find ,in centos 6.3, the kernel send to nbd-server all packet request
size is 4096 byte,
But when I compile the kernel to 2.6.32 ,it is download from kernel.org,
Then the kernel send nbd-server packet request size is 127K, why???
But in centos 5.10, the kernel send nbd-server packet request size is
127K, only in centos 6.3,6.4 and 6.5
Then the kernel send to nbd-server packet request size is 4096 byte,
why???
When I compile the kernel to 2.6.32, the source is download from
kernel.org,
Then the kernel send nbd-server packet request size is 127K, why???
How to solve this problem??? But not compile the kernel,please answer
me,thank you very much
How to solve this problem??? But not compile the kernel,please answer
me,thank you very much
How to solve this problem??? But not compile the kernel,please answer
me,thank you very much
I compile nbd module in centos 6.3, step is :
1.yum install kernel-devel kernel-headers
2.cd /tmp
Wget
<ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6ComputeNode/en/os/SRPMS/k
ernel-2.6.32.220.4.2.el6.src.rpm>
ftp://ftp.redhat.com/pub/redhat/linux/enterprise/6ComputeNode/en/os/SRPMS/ke
rnel-2.6.32.220.4.2.el6.src.rpm (CentOS
3.rpm -ivh kernel-2.6.32.220.4.2.el6.src.rpm
4. cd ~/rpmbuild/SOURCES
5.tar jxf linux-2.6.32-220.4.2.el6.tar.bz2 -C /usr/src/kernels/
6.cd /usr/src/kernels
7.mv $(uname -r) $(uname -r)-old
8.mv linux-2.6.32-220.4.2.el6 $(uname -r)
9.cd $(uname -r)
10.make mrproper
11.cp ../$(uname -r)-old/Module.symvers .
12.cp /boot/config-$(uname -r) ./.config
13.make oldconfig
14.make prepare
15.make scripts
16.make CONFIG_BLK_DEV_NBD=m M=drivers/block
17.cp drivers/block/nbd.ko /lib/modules/$(uname -r)/kernel/drivers/block/
18.depmod �Ca
19.modprobe nbd
20. nbd-server 1234 /root/nbd �Cd
21. nbd-client 127.0.0.1 1234 /dev/nbd0 -b 4096 -p �Cs
22. dd if=/dev/zero of=/dev/nbd0 bs=1M count=1000000
23:
2493: *NBD_CMD_WRITE from 10944512 (21376) len 4096, wr: net->buf,
*buf->exp, (WRITE to fd 6 offset 10944512 len 4096 fua 0), +OK!
2494: *NBD_CMD_WRITE from 10948608 (21384) len 4096, wr: net->buf,
*buf->exp, (WRITE to fd 6 offset 10948608 len 4096 fua 0), +OK!
2495: *NBD_CMD_WRITE from 10952704 (21392) len 4096, wr: net->buf,
*buf->exp, (WRITE to fd 6 offset 10952704 len 4096 fua 0), +OK!
2496: *NBD_CMD_WRITE from 10956800 (21400) len 4096, wr: net->buf,
*buf->exp, (WRITE to fd 6 offset 10956800 len 4096 fua 0), +OK!
2497: *NBD_CMD_WRITE from 10960896 (21408) len 4096, wr: net->buf,
*buf->exp, (WRITE to fd 6 offset 10960896 len 4096 fua 0), +OK!
2498: *NBD_CMD_WRITE from 10964992 (21416) len 4096, wr: net->buf,
*buf->exp, (WRITE to fd 6 offset 10964992 len 4096 fua 0), +OK!
2499: *NBD_CMD_WRITE from 10969088 (21424) len 4096, wr: net->buf,
*buf->exp, (WRITE to fd 6 offset 10969088 len 4096 fua 0), +OK!
2500: *NBD_CMD_WRITE from 10973184 (21432) len 4096, wr: net->buf,
*buf->exp, (WRITE to fd 6 offset 10973184 len 4096 fua 0), +OK!
2501: *NBD_CMD_WRITE from 10977280 (21440) len 4096, wr: net->buf,
*buf->exp, (WRITE to fd 6 offset 10977280 len 4096 fua 0), +OK!
2502: *NBD_CMD_WRITE from 10981376 (21448) len 4096, wr: net->buf,
*buf->exp, (WRITE to fd 6 offset 10981376 len 4096 fua 0), +OK!
2503: *NBD_CMD_WRITE from 10985472 (21456) len 4096, wr: net->buf,
*buf->exp, (WRITE to fd 6 offset 10985472 len 4096 fua 0), +OK!
------------------------------------------------------------------------------
Android apps run on BlackBerry 10
Introducing the new BlackBerry 10.2.1 Runtime for Android apps.
Now with support for Jelly Bean, Bluetooth, Mapview and more.
Get your Android app in front of a whole new audience. Start now.
http://pubads.g.doubleclick.net/gampad/clk?id=124407151&iu=/4140/ostg.clktrk
_______________________________________________
Nbd-general mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/nbd-general