diff for duplicates of <470F8263.4020107@systella.fr> diff --git a/a/1.txt b/N1/1.txt index 8cd4cda..bc0b7df 100644 --- a/a/1.txt +++ b/N1/1.txt @@ -17,9 +17,9 @@ Root gershwin:[~] > blockdev --getsize64 /dev/md7 When NDB client tries to connect to its server, I obtain : -Root gershwin:[/usr/scripts] > nbd-client bs@96 192.168.0.2 2000 /dev/nbd0 +Root gershwin:[/usr/scripts] > nbd-client bs=4096 192.168.0.2 2000 /dev/nbd0 Negotiation: ..size = 1430396KB -bs@96, sz57599 +bs=4096, sz=357599 Root gershwin:[/usr/scripts] > Thus, nbd seems to work. Please note that size is correctly returned. @@ -28,11 +28,11 @@ Now, I would build a raid1 array on this server with /dev/nbd0 and Root gershwin:[/usr/scripts] > mdadm -C /dev/md8 -l1 -n2 /dev/md7 /dev/nbd0 mdadm: /dev/md7 appears to contain an ext2fs file system - size\x1464725760K mtime=Thu Jan 1 01:00:00 1970 + size=1464725760K mtime=Thu Jan 1 01:00:00 1970 mdadm: /dev/md7 appears to be part of a raid array: level=raid0 devices=2 ctime=Fri Oct 12 14:22:27 2007 mdadm: /dev/nbd0 appears to contain an ext2fs file system - size\x1464725760K mtime=Thu Jan 1 01:00:00 1970 + size=1464725760K mtime=Thu Jan 1 01:00:00 1970 mdadm: /dev/nbd0 appears to be part of a raid array: level=raid0 devices=2 ctime=Fri Oct 12 14:22:27 2007 mdadm: largest drive (/dev/md7) exceed size (1430272K) by more than 1% @@ -44,27 +44,27 @@ times greater than the _same_ block device exported by nbd ! Other question : I have tried to write large files on /dev/nbd0 and kernel returns : -nbd0: rw=1, want(77616, limit(60792 +nbd0: rw=1, want=2877616, limit=2860792 attempt to access beyond end of device -nbd0: rw=1, want(77624, limit(60792 +nbd0: rw=1, want=2877624, limit=2860792 attempt to access beyond end of device -nbd0: rw=1, want(77632, limit(60792 +nbd0: rw=1, want=2877632, limit=2860792 attempt to access beyond end of device -nbd0: rw=1, want(77640, limit(60792 +nbd0: rw=1, want=2877640, limit=2860792 attempt to access beyond end of device -nbd0: rw=1, want(77648, limit(60792 +nbd0: rw=1, want=2877648, limit=2860792 attempt to access beyond end of device -nbd0: rw=1, want(77656, limit(60792 +nbd0: rw=1, want=2877656, limit=2860792 attempt to access beyond end of device -nbd0: rw=1, want(77664, limit(60792 +nbd0: rw=1, want=2877664, limit=2860792 attempt to access beyond end of device -nbd0: rw=1, want(77672, limit(60792 +nbd0: rw=1, want=2877672, limit=2860792 attempt to access beyond end of device -nbd0: rw=1, want(77680, limit(60792 +nbd0: rw=1, want=2877680, limit=2860792 attempt to access beyond end of device -nbd0: rw=1, want(77688, limit(60792 +nbd0: rw=1, want=2877688, limit=2860792 attempt to access beyond end of device -nbd0: rw=1, want(77696, limit(60792 +nbd0: rw=1, want=2877696, limit=2860792 attempt to access beyond end of device I suspect a bug, but I haven't find any fix or workaround... diff --git a/a/content_digest b/N1/content_digest index 96a4d3c..db18cf1 100644 --- a/a/content_digest +++ b/N1/content_digest @@ -1,6 +1,6 @@ "From\0BERTRAND Jo\303\253l <joel.bertrand@systella.fr>\0" "Subject\0Blockdev API returns erroneous size on /dev/nbd\0" - "Date\0Fri, 12 Oct 2007 14:19:15 +0000\0" + "Date\0Fri, 12 Oct 2007 16:19:15 +0200\0" "To\0linux-kernel@vger.kernel.org\0" "Cc\0nbd-general@lists.sourceforge.net" " sparclinux@vger.kernel.org\0" @@ -25,9 +25,9 @@ "\n" "\tWhen NDB client tries to connect to its server, I obtain :\n" "\n" - "Root gershwin:[/usr/scripts] > nbd-client bs@96 192.168.0.2 2000 /dev/nbd0\n" + "Root gershwin:[/usr/scripts] > nbd-client bs=4096 192.168.0.2 2000 /dev/nbd0\n" "Negotiation: ..size = 1430396KB\n" - "bs@96, sz57599\n" + "bs=4096, sz=357599\n" "Root gershwin:[/usr/scripts] >\n" "\n" "Thus, nbd seems to work. Please note that size is correctly returned. \n" @@ -36,11 +36,11 @@ "\n" "Root gershwin:[/usr/scripts] > mdadm -C /dev/md8 -l1 -n2 /dev/md7 /dev/nbd0\n" "mdadm: /dev/md7 appears to contain an ext2fs file system\n" - " size\02464725760K mtime=Thu Jan 1 01:00:00 1970\n" + " size=1464725760K mtime=Thu Jan 1 01:00:00 1970\n" "mdadm: /dev/md7 appears to be part of a raid array:\n" " level=raid0 devices=2 ctime=Fri Oct 12 14:22:27 2007\n" "mdadm: /dev/nbd0 appears to contain an ext2fs file system\n" - " size\02464725760K mtime=Thu Jan 1 01:00:00 1970\n" + " size=1464725760K mtime=Thu Jan 1 01:00:00 1970\n" "mdadm: /dev/nbd0 appears to be part of a raid array:\n" " level=raid0 devices=2 ctime=Fri Oct 12 14:22:27 2007\n" "mdadm: largest drive (/dev/md7) exceed size (1430272K) by more than 1%\n" @@ -52,27 +52,27 @@ "Other question : I have tried to write large files on /dev/nbd0 and \n" "kernel returns :\n" "\n" - "nbd0: rw=1, want(77616, limit(60792\n" + "nbd0: rw=1, want=2877616, limit=2860792\n" "attempt to access beyond end of device\n" - "nbd0: rw=1, want(77624, limit(60792\n" + "nbd0: rw=1, want=2877624, limit=2860792\n" "attempt to access beyond end of device\n" - "nbd0: rw=1, want(77632, limit(60792\n" + "nbd0: rw=1, want=2877632, limit=2860792\n" "attempt to access beyond end of device\n" - "nbd0: rw=1, want(77640, limit(60792\n" + "nbd0: rw=1, want=2877640, limit=2860792\n" "attempt to access beyond end of device\n" - "nbd0: rw=1, want(77648, limit(60792\n" + "nbd0: rw=1, want=2877648, limit=2860792\n" "attempt to access beyond end of device\n" - "nbd0: rw=1, want(77656, limit(60792\n" + "nbd0: rw=1, want=2877656, limit=2860792\n" "attempt to access beyond end of device\n" - "nbd0: rw=1, want(77664, limit(60792\n" + "nbd0: rw=1, want=2877664, limit=2860792\n" "attempt to access beyond end of device\n" - "nbd0: rw=1, want(77672, limit(60792\n" + "nbd0: rw=1, want=2877672, limit=2860792\n" "attempt to access beyond end of device\n" - "nbd0: rw=1, want(77680, limit(60792\n" + "nbd0: rw=1, want=2877680, limit=2860792\n" "attempt to access beyond end of device\n" - "nbd0: rw=1, want(77688, limit(60792\n" + "nbd0: rw=1, want=2877688, limit=2860792\n" "attempt to access beyond end of device\n" - "nbd0: rw=1, want(77696, limit(60792\n" + "nbd0: rw=1, want=2877696, limit=2860792\n" "attempt to access beyond end of device\n" "\n" "\tI suspect a bug, but I haven't find any fix or workaround...\n" @@ -81,4 +81,4 @@ "\n" "\tJKB" -b8f280018f3713ecf826d7da12ea8c9a612dcea3771bad4dae42934fc2fbd74b +7f325d5e04a13dd1125e3ca2b3caf35190f838a9facc0670c3e0e30f89634d09
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.