⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 kgnbd_ideas

📁 openGFS , a kind of file system.
💻
字号:
There is pretty much two things I would like to see in kgnbd. First is acontrol interface, probably using a /proc entry. This would be a method ofdeclaring what devices allow which clients to connect. (I guess I shouldalso state that it makes sense to me that kgnbd would have the ability toserve more than one block device.) In this system, clients loginrequesting access to a certain device. The server checks its tables,looking at the entry for that device. That entry will conatin a list ofIPs and/or IP masks. If the clients IP matches this list, it is allowed tologin, else it gets an error. (This is what those unsed structures at thebottom of the trans.h file are for.) I think it would be good to keep thecurrent rdev option at module startup, and just have it add an entry tothe control table for that device and any client. The second thing is the handling of the server's threads. I would like tohave a set number of threads start when the module is loaded. One of thesewill handle logins, the others will handle the traffic to clients. This ismuch better than the current userland client that just opens anotherthread for each new client. This shouldn't be too hard to do, once Ifigure it out.Right now it leaves all kinds of bogus threads lying around, and trying touse multiple clients seems to do weird things.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -