← Back to team overview

kernel-packages team mailing list archive

[Bug 1240857] [NEW] Inotify is broken in saucy

 

Public bug reported:

Compile this code:

#include<sys/inotify.h>
#include<stdio.h>
#include<string.h>
#include<errno.h>

int main(int argc, char **argv) {
  int inotifyid = inotify_init();
  if(inotifyid == -1) {
    fprintf(stderr, "Could not init inotify.\n");
    return 1;
  }
  int wd = inotify_add_watch(inotifyid, argv[1],
            IN_CREATE | IN_DELETE_SELF | IN_DELETE | IN_CLOSE_WRITE |
            IN_MOVED_FROM | IN_MOVED_TO | IN_ONLYDIR);
  if(wd == -1) {
    fprintf(stderr, "Could not create inotify watch object: %s\n",
            strerror(errno));
    return 1;
  }
  return 0;
}

Run it like this: "./inotifyapp some/dir".

On Saucy it prints this:

Could not create inotify wath object: No space left on device

The same happens on both btrfs and ext4 drives. The disk does have space
and the same partition works when inotify is used from raring.

This issue breaks e.g. Dropbox.

** Affects: linux (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Kernel
Packages, which is subscribed to linux in Ubuntu.
https://bugs.launchpad.net/bugs/1240857

Title:
  Inotify is broken in saucy

Status in “linux” package in Ubuntu:
  New

Bug description:
  Compile this code:

  #include<sys/inotify.h>
  #include<stdio.h>
  #include<string.h>
  #include<errno.h>

  int main(int argc, char **argv) {
    int inotifyid = inotify_init();
    if(inotifyid == -1) {
      fprintf(stderr, "Could not init inotify.\n");
      return 1;
    }
    int wd = inotify_add_watch(inotifyid, argv[1],
              IN_CREATE | IN_DELETE_SELF | IN_DELETE | IN_CLOSE_WRITE |
              IN_MOVED_FROM | IN_MOVED_TO | IN_ONLYDIR);
    if(wd == -1) {
      fprintf(stderr, "Could not create inotify watch object: %s\n",
              strerror(errno));
      return 1;
    }
    return 0;
  }

  Run it like this: "./inotifyapp some/dir".

  On Saucy it prints this:

  Could not create inotify wath object: No space left on device

  The same happens on both btrfs and ext4 drives. The disk does have
  space and the same partition works when inotify is used from raring.

  This issue breaks e.g. Dropbox.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1240857/+subscriptions


Follow ups

References