Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754114Ab3DSTX4 (ORCPT ); Fri, 19 Apr 2013 15:23:56 -0400 Received: from mail-lb0-f171.google.com ([209.85.217.171]:64135 "EHLO mail-lb0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753950Ab3DSTXz (ORCPT ); Fri, 19 Apr 2013 15:23:55 -0400 MIME-Version: 1.0 In-Reply-To: <5169477D.1000400@gmx.de> References: <1360862966-6376-1-git-send-email-jmaggard10@gmail.com> <5169477D.1000400@gmx.de> Date: Fri, 19 Apr 2013 12:23:54 -0700 Message-ID: Subject: Re: fanotify: fix support of large files From: Justin Maggard To: Heinrich Schuchardt Cc: linux-kernel@vger.kernel.org, eparis@redhat.com, LinoSanfilippo@gmx.de, tzvetanc@commtouch.com Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1377 Lines: 41 On Sat, Apr 13, 2013 at 4:54 AM, Heinrich Schuchardt wrote: > Dear Justin, > > looking at the example at > http://www.lanedo.com/~aleksander/fanotify/fanotify-example.c > the large file support is enabled by passing O_LARGEFILE to fanotify_init: > > if ((fanotify_fd = fanotify_init (FAN_CLOEXEC, > O_RDONLY | O_CLOEXEC | O_LARGEFILE)) < > 0) > > Could you, please, check if this solves your issue. > > (I am resending this message because HTML was rejected by > linux-kernel@vger.kernel.org). > > Best regards > > Heinrich Schuchardt > No, unfortunately that doesn't help. I slightly modifed fanotify-example.c to call perror() when read() fails, and here's the output: jmaggard@jmaggard-W520:~/fanotify-test$ sudo ./fanotify-example . & [1] 7248 jmaggard@jmaggard-W520:~/fanotify-test$ Started monitoring directory '.'... truncate -s 2047m 2047m Received event in path '/home/jmaggard/fanotify-test/2047m' pid=7250 (unknown): FAN_OPEN FAN_CLOSE_WRITE jmaggard@jmaggard-W520:~/fanotify-test$ truncate -s 2048m 2048m read: Value too large for defined data type -Justin -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/