The tag has no wiki summary.

learn more… | top users | synonyms

-2
votes
0answers
33 views

How can I get NTFS to support the inotify() kernel API?

I want to use inotify on a NTFS partition. How can I do that? I have a minidlna daemon running and an external NTFS harddrive. If I add music or videos to the NTFS drive, minidlna doesn't get ...
3
votes
1answer
425 views

Httpd : no space left on device

I am using Fedora 17 and over the last few days I am having an issue with my system. Whenever I try to start httpd it shows me: Error: No space left on device When I execute systemctl status ...
2
votes
1answer
56 views

inotifywait not working when folder is deleted and re-created

I am trying to use inotifywait to monitor a folder: inotifywait -m -r /home/oshiro/Desktop/work_folder The command works and if I create files in that folder, all seems to work correctly. While ...
3
votes
0answers
45 views

How does fsnotify setting affect system performance?

Occasionally a software package I install complains that the default fsnotify setting is far too low for decent performance. Intellij IDEA or crashplan are two examples. They suggest using fsnotify ...
4
votes
2answers
113 views

Is there any way to use xargs across a pipe?

I'm trying to automatically convert flac files moved to a folder into mp3 in another folder. My current line of code is this: inotifywait -m -r -q -e moved_to --format "'%w%f'" ~/test | xargs -I x ...
5
votes
1answer
270 views

inotify and rsync on large number of files

I am using inotify to watch a directory and sync files between servers using rsync. Syncing works perfectly, and memory usage is mostly not an issue. However, recently a large number of files were ...
2
votes
1answer
58 views

Incrontab doesn't detect modifications on a s3fs mount

This is my incrontab line: /srv/www IN_MODIFY,IN_ATTRIB,IN_CREATE,IN_DELETE,IN_CLOSE_WRITE,IN_MOVE rsync --quiet --recursive --links --hard-links --perms --acls --xattrs --owner --group --delete ...
2
votes
2answers
360 views

Monitoring file locks, locked using flock

I would like to get a list of pid's which hold shared lock on /tmp/file. Is this possible using simple command line tools?
4
votes
1answer
524 views

Notify of changes on a file under /proc

I have written a small 'daemon' in bash that will switch to the headphones if they are detected, and if not, switch to an external USB speaker with PulseAudio. What I'm looking for is some way to get ...
2
votes
1answer
56 views

Monitoring file reads for cache warming

After adding more memory to my Linux machine I was tempted to use the cache more agressively. The thing is: I boot up my machine, go to bathroom, come back and log in. It takes like half a minute to ...
1
vote
2answers
745 views

Use inotifywait to move file when it loads in dropbox folder

I'm trying to find a way to immediately move a file to another folder as soon as it appears in my dropbox on CentOS. I have scoured the internet for some clues but I can't get any further than the ...
2
votes
1answer
167 views

How does inotify work?

According to Wikipedia, inotify is a Linux kernel subsystem which notices changes to the file system. It replaced the previous dnotify. Programs that sync files (such as crashplan, dropbox, git) ...
21
votes
4answers
6k views

Who's consuming my inotify resources?

After a recent upgrade to Fedora 15, I'm finding that a number of tools are failing with errors along the lines of: tail: inotify resources exhausted tail: inotify cannot be used, reverting to ...
6
votes
1answer
1k views

Why are inotify events different on an NFS mount?

Some time ago I noticed that the events reported by inotify are different when the file is saved to an NFS mount vs. a local file system. Shouldn't the underlying VFS provide a uniform view of file ...
4
votes
2answers
543 views

Inotifywait for large number of files in a directory

What I want to do is, to monitor a directory (not recursive, just one) for new files created and append those files to one single big file as they are being written. The number of files that are ...
1
vote
0answers
45 views

incrontab reports modifying a file that doesn't exists

I have created this incrontab entry: /tmp IN_ALL_EVENTS /home/me/changes.sh $@/$# $% and this script (changes.sh): #!/bin/bash echo "file $1 changed(flgs: $2)" >> /home/me/changes.log ...
3
votes
1answer
147 views

No output from inotifywait | awk

I'm attempting to use part of a one-liner found here: Script to monitor folder for new files? When I try the following procedure I get no output whatsoever and I cannot figure out why. In terminal ...
2
votes
0answers
102 views

Can I limit the number of inotify watches available to a process or cgroup?

I am consistently running out of inotify resources, leading to errors along the lines of: # tail -f /some/files tail: inotify resources exhausted tail: inotify cannot be used, reverting to polling ...
7
votes
1answer
926 views

Does inotify fire a notification when a write is started or when it is completed?

Imagine two processes, a reader and a writer, communicating via a regular file on an ext3 fs. Reader has an inotify IN_MODIFY watch on the file. Writer writes 1000 bytes to the file, in a single ...
2
votes
1answer
68 views

App which can execute arbitrary code on different events

I've been looking for a simple activator which can execute some code when stuff happens, I haven't found anything yet. Maybe, I am not using the right keywords. It would be great if someone pointed me ...
4
votes
1answer
435 views

Efficiency of lots of inotify watches or stat calls

I am developing software that will utilize inotify to track changes on a large amount of files (tens to hundreds of thousands of files). I have come up with these ideas: one watch per file one watch ...
17
votes
1answer
8k views

Kernel inotify watch limit reached

I'm currently facing a problem on a linux box where as root I have commands returning error because inotify watch limit has been reached. # tail -f /var/log/messages [...] tail: cannot watch ...