From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20488 invoked by alias); 3 Dec 2012 10:43:04 -0000 Received: (qmail 18844 invoked by uid 48); 3 Dec 2012 10:42:30 -0000 From: "binli at opensuse dot org" To: glibc-bugs@sources.redhat.com Subject: [Bug nscd/14906] inotify failed when /etc/hosts file change Date: Mon, 03 Dec 2012 10:43:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: nscd X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: binli at opensuse dot org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2012-12/txt/msg00018.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14906 --- Comment #3 from Bin Li 2012-12-03 10:42:29 UTC --- Created attachment 6771 --> http://sourceware.org/bugzilla/attachment.cgi?id=6771 the patch for suggested fix Miklos Szeredi 2012-10-18 11:04:49 UTC I looked at the inotify code in nscd code and it's full of bugs. Apparently the cache pruning by inotify wasn't tested to any useful extent. And latest upstream version carries all those bugs too. We can fix all these but that's a whole little project. Or there are some simpler options: a) disable inotify completely and do it the old way (check file modification times regularly) b) enable inotify but also check modification times in case the inotify code fails to work. c) option b) plus something like comment 20 The attached patch does option b). I've not tested it. The glibc package maintainers will have to make the decision on how to fix it, this patch is just a suggestion. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.