有人知道在哪裡更改這個“bufsize”值嗎? (st/mt LTO 磁帶機)

有人知道在哪裡更改這個“bufsize”值嗎? (st/mt LTO 磁帶機)

我正在嘗試速度測試一些新的 LTO 磁帶驅動器,但似乎無法透過 dd 將以上任何區塊大小的資料發送到磁帶327,680位元組.我的應用程式必須有 1M 的區塊大小。

[root@host]# mt -f /dev/nst0 status
BOT ONLINE IM_REP_EN
[root@host]# dd if=/dev/zero of=/dev/nst0 bs=327679
<this transfers data fine>
[root@host]# dd if=/dev/zero of=/dev/nst0 bs=327680
<this transfers data fine>
[root@host]# dd if=/dev/zero of=/dev/nst0 bs=327681
Device or resource busy

我花了很多時間嘗試調試這個。重建內核,更新驅動程式和韌體。

啟示:運行 dmesg 的結果表明,某處有一個 bufsize 設定為我看到的區塊大小牆的確切臨界值。

[root@host]# dmesg | grep bufsize
[    9.114532] st: Version 20160209, fixed bufsize 327680, s/g segs 64

誰知道我可以在哪裡改變這個緩衝區大小價值?

相關內容