Page MenuHomeFreeBSD

nvmf: Rescan namespaces after reconnecting
ClosedPublic

Authored by jhb on Sun, Jun 2, 6:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 8, 6:39 PM
Unknown Object (File)
Wed, Jun 5, 8:36 PM
Unknown Object (File)
Mon, Jun 3, 5:30 PM
Subscribers
None

Details

Summary

In particular, check to see if namespaces have been added or removed
while disconnected.

Sponsored by: Chelsio Communications

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Sun, Jun 2, 6:44 PM
jhb created this revision.

Is this a good place to add a brief note about why this is a good idea, either in the commit message or in the code? (If so, I'd lean towards the former).

This revision is now accepted and ready to land.Sun, Jun 2, 6:57 PM
In D45461#1036800, @imp wrote:

Is this a good place to add a brief note about why this is a good idea, either in the commit message or in the code? (If so, I'd lean towards the former).

Oh, yeah, I probably should note that a namespace could have been removed or added while we were disconnected in the log message. That's the use case, though after the change to optionally fail I/O's while disconnected it is also needed to "see" existing namespaces after a reconnect. For this commit though in the time sequence it is just the "something changed while disconnected" (which is also how I tested it, using ctladm to add/remove LUNs on the server side while the client was disconnected).

This revision was automatically updated to reflect the committed changes.