Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1979984 Details for
Bug 2226558
bfq + losetup: loop devices disappear
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh89 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
reproducer for bfq-losetup weirdness
losetup-brq.sh (text/plain), 830 bytes, created by
Ed Santiago
on 2023-07-25 23:58:10 UTC
(
hide
)
Description:
reproducer for bfq-losetup weirdness
Filename:
MIME Type:
Creator:
Ed Santiago
Created:
2023-07-25 23:58:10 UTC
Size:
830 bytes
patch
obsolete
>#!/bin/bash ># ># reproducer for weird losetup issue in rawhide ># ># Run this script once. All will work fine. ># ># Run it again, and the script fails because "losetup -l" ># no longer emits any output. ># ># Uncomment the "echo none" at the end (and manually echo none ># to all /sys/block/loop*/queue/scheduler), and the script ># happily runs over and over again. ># ># Bizarrely, running these commands individually in a shell, ># all works fine. Until somehow/somewhen you get your shell ># into a mode where losetup -l never works again. > >set -x > >lofile=/tmp/disk.img >fallocate -l 1k $lofile >losetup -f $lofile >losetup -l > >echo > >dev=$(losetup -l --noheadings --output NAME) >schedfile=/sys/block/$(basename $dev)/queue/scheduler >cat $schedfile >echo bfq > $schedfile >cat $schedfile > >echo >losetup -l > >losetup -d $dev >#echo none >$schedfile
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 2226558
: 1979984