On Tue, May 16, 2023 at 06:00:05PM +0200, Christian Brauner wrote: > Looking at this code reminds me that we'll need a block dev lookup > function that takes a diskseq argument so we can lookup a block device > and check it against the diskseq number we provided so we can detect > "media" changes (images on a loop device etc). Idea being to pass > diskseq numbers via fsconfig(). You can already do this by checking right after opening but before using it. In theory we could pass the seq down, and handle it further down, but I'm not sure this really solves anything. The main work here really is in the mount code.