Re: [Nbd] [PATCH 2/2] nbd: Disallow ioctls on disconnected block device
From: Alex Bligh
Date: Sat Jul 16 2016 - 05:39:24 EST
On 16 Jul 2016, at 08:42, Pranay Srivastava <pranjas@xxxxxxxxx> wrote:
> So instead can't we put a mechanism in place for network address + mac
> to be same
> for allowing clients to reconnect? Do let me know if this is not of concern.
MAC address?! nbd clients connect over IP, and if a router reboots
between them, you could easily see two packets from the same client
come from different MAC addresses. Similarly all clients not on
the same L2 network will carry the same MAC address. So MAC address
is a very poor indicator of 'same client'.
IP address is also a poor indicator (think NAT) but is substantially
less bad.
--
Alex Bligh