Page MenuHomeFreeBSD

nvmf: Rescan namespaces after reconnecting
ClosedPublic

Authored by jhb on Jun 2 2024, 6:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 11, 10:55 PM
Unknown Object (File)
Sat, Apr 11, 2:59 PM
Unknown Object (File)
Sat, Apr 4, 1:56 AM
Unknown Object (File)
Fri, Apr 3, 6:30 PM
Unknown Object (File)
Fri, Apr 3, 9:24 AM
Unknown Object (File)
Tue, Mar 24, 12:48 AM
Unknown Object (File)
Mar 15 2026, 11:44 PM
Unknown Object (File)
Mar 8 2026, 6:01 AM
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.Jun 2 2024, 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.Jun 2 2024, 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.