Bug 1167535 - Fix fanotify 4g size limit. r=fabrice

This commit is contained in:
JerryShih 2015-05-22 11:20:00 -04:00
parent ff9f1eba0d
commit 7734aa7bd1

View File

@ -177,7 +177,7 @@ GonkDiskSpaceWatcher::DoStart()
NS_ASSERTION(XRE_GetIOMessageLoop() == MessageLoopForIO::current(),
"Not on the correct message loop");
mFd = fanotify_init(FAN_CLASS_NOTIF, FAN_CLOEXEC);
mFd = fanotify_init(FAN_CLASS_NOTIF, FAN_CLOEXEC | O_LARGEFILE);
if (mFd == -1) {
if (errno == ENOSYS) {
NS_WARNING("Warning: No fanotify support in this device's kernel.\n");