FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Ubuntu > Ubuntu Kernel Team

 
 
LinkBack Thread Tools
 
Old 01-19-2012, 11:47 AM
Tim Gardner
 
Default ACK: Fix loop device notificaitons.

On 01/18/2012 08:46 AM, Ayan George wrote:


SRU Justification:

Impact: The loop device does not emit a change uevent when autoreleasing
a device. Programs that depend on uevents (like gvfs and ultimately
Nautilus) never notice when loop devices are unmounted.

Bug-Link: https://bugs.launchpad.net/ubuntu/+source/usb-creator/+bug/548546

Fix: Apply 8a9c594422ecad912d6470888acdee9a1236ad68 from linux mainline
-- Pass a valid bdev pointer to loop_clr_fd() instead of NULL so that
it will emit the uevent.

The patch is very small and applies cleanly to ubuntu-oneiric.

Testcase:

(1) In a terminal, start udevadm in monitor mode:

$ udevadm monitor

(2) In another terminal, mount an ISO image using the loopback device:

$ sudo mount -o loop -t iso9660 your_image.iso /mnt

(3) Notice the change uevents that udevadm reports.

(4) Unmount image:

$ sudo umount /mnt

(5) Note that udevadm does not report any changes. With the patch
applied, you will see the kernel noticiations.








--
Tim Gardner tim.gardner@canonical.com

--
kernel-team mailing list
kernel-team@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/kernel-team
 

Thread Tools




All times are GMT. The time now is 07:07 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org