lkml.org 
[lkml]   [1999]   [Jun]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: VFS event hooks
Date
From
In message <m3zp1mhk2w.fsf@fred.muc.de>, Andi Kleen writes:
+-----
| torvalds@transmeta.com (Linus Torvalds) writes:
| > Note that the poll() approach would simply mean that the file browser
| > would have each directory that it displays open - and running poll on
| > them. Whenever poll indicates that the directory changed, it re-reads the
| > directory and updates as necessary.
|
| This means that if it displays a CD-ROM or a automount directory it cannot be
| umounted, which would be annoying.
+--->8

(1) umount/eject from the file browser
(2) an attempted umount would send a different kind of poll notification to
the file browser, which would respond by closing the poll descriptor.
"umount /cdrom || (sleep 30; umount /cdrom)"
(you don't want to block umount on the close because that could be a DoS)

--
brandon s. allbery [os/2][linux][solaris][japh] allbery@kf8nh.apk.net
system administrator [WAY too many hats] allbery@ece.cmu.edu
carnegie mellon / electrical and computer engineering KF8NH
We are Linux. Resistance is an indication that you missed the point.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:52    [W:0.123 / U:3.692 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site