[Gambas-user] [Gambas Bug Tracker] Bug #734: gb.inotify "no more space on the unit"

bugtracker at ...3416... bugtracker at ...3416...
Sat Sep 12 22:57:18 CEST 2015


http://gambaswiki.org/bugtracker/edit?object=BUG.734&from=L21haW4-

Comment #2 by Tobias BOEGE:

It might be "No space left on device" which is the error ENOSPC. This error
can indeed happen, according to the inotify documentation, if

  "The user limit on  the  total  number  of  inotify  watches  was
   reached or the kernel failed to allocate a needed resource."

Apparently the files /proc/sys/fs/inotify/max_user_instances and
/proc/sys/fs/inotify/max_user_watches tell you how many inotify instances
and how many watches you can create. Note that other running applications
possibly already use some of this capacity at the time the Gambas process
starts.

I also attach a small C program which you can use to tell me if inotify
generally (i.e. without the rest of Gambas) works on your system. You can
compile and try it like this:

  $ gcc -Wall inotify-test.c
  $ ./a.out ~/Documents/

After you start the program, it watches ~/Documents for "open" events. Go
to another terminal and "ls ~/Documents". Then an output line like this
should appear:

  Events 0x40000020 for '/home/tab/Documents/'

It tells you that the watched object is a directory (the leading 4 digit)
and that the caught event was an "open" (the 2 digit).






More information about the User mailing list