Movatterモバイル変換


[0]ホーム

URL:


Jump to content
WikipediaThe Free Encyclopedia
Search

dnotify

From Wikipedia, the free encyclopedia
Linux subsystem for filesystem monitoring

dnotify is afile system event monitor for theLinux kernel, one of the subfeatures of the fcntl call. It was introduced in the 2.4 kernel series.[1] It has been obsoleted byinotify, but will be retained for compatibility reasons.

Its function is essentially an extension tofilesystems to notice changes to the filesystem, and report those changes to applications. Instead of application checking for changes to filesystem, application can register to be notified by kernel when changes to filesystem occur. Application can select directories to monitor and types of changes to be notified for.

One major use is indesktop search utilities likeBeagle, where its functionality permitsreindexing of changed files without scanning the filesystem for changes every few minutes, which would be very inefficient. By beingtold that a file has changed directly by the kernel, rather than actively looking, Beagle and such utilities can achieve change-to-reindexing times of only about a second, with very small performance hits (dnotify therefore enables the use of such programs in a sensible manner;daemons are generally not accepted by distributors if they drain system performance noticeably to provideuserland functionality).

Limitations

[edit]
  • dnotify can only watch directories.
  • dnotify requires maintaining an open file descriptor to the directory that the user wants to watch. First, the directory is open, hence disallowing the device on which it resides from being unmounted. Second, watchlist is limited by open file limit of the process.[2]

See also

[edit]

Footnotes

[edit]
  1. ^Namely, in 2.4.0-test9.
  2. ^"Kernel Korner - Intro to inotify". Linux Journal. Retrieved25 April 2012.
Organization
Kernel
Support
People
Technical
Debugging
Startup
ABIs
APIs
Kernel
System Call
Interface
In-kernel
Userspace
Daemons,
File systems
Wrapper
libraries
Components
Variants
Virtualization
Adoption
Range
of use
Adopters


Stub icon

ThisLinux-related article is astub. You can help Wikipedia byadding missing information.

Retrieved from "https://en.wikipedia.org/w/index.php?title=Dnotify&oldid=1334343022"
Categories:
Hidden categories:

[8]ページ先頭

©2009-2026 Movatter.jp