diff options
Diffstat (limited to 'mount')
-rw-r--r-- | mount/lomount.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mount/lomount.c b/mount/lomount.c index 5cf50f884..6ef143ab6 100644 --- a/mount/lomount.c +++ b/mount/lomount.c @@ -301,6 +301,10 @@ looplist_next(struct looplist *ll) continue; if (m != LOOPMAJOR) continue; + /* unfortunately, real minor numbers needn't to match + * loop<N> device name. We have to follow device name. + */ + n = name2minor(1, name); fd = looplist_open_dev(ll, n); if (fd != -1) return fd; |