Project

General

Profile

Bug #4278

read-only lofi devices can never be removed if used

Added by Rich Lowe about 7 years ago. Updated about 7 years ago.

Status:
Resolved
Priority:
Normal
Category:
kernel
Start date:
2013-10-30
Due date:
% Done:

100%

Estimated time:
Difficulty:
Medium
Tags:
Gerrit CR:

Description

% sudo lofiadm -r -a bar
/dev/lofi/1
% sudo lofiadm -d bar
% sudo lofiadm -r -a bar
/dev/lofi/1
% sudo dd if=/dev/zero of=/dev/lofi/1
dd: opening `/dev/lofi/1': Read-only file system
% sudo lofiadm -d bar
lofiadm: could not unmap file /home/foo/bar: Device busy
% sudo lofiadm -d /dev/lofi/1
lofiadm: could not unmap device /dev/lofi/1: Device busy

Also available in: Atom PDF