Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965238AbbDQQZ4 (ORCPT ); Fri, 17 Apr 2015 12:25:56 -0400 Received: from mailout4.w1.samsung.com ([210.118.77.14]:13494 "EHLO mailout4.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932564AbbDQQZp (ORCPT ); Fri, 17 Apr 2015 12:25:45 -0400 X-AuditID: cbfec7f4-f79c56d0000012ee-a2-553134079e6f Message-id: <55313401.5080008@samsung.com> Date: Fri, 17 Apr 2015 18:25:37 +0200 From: Beata Michalska User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130804 Thunderbird/17.0.8 MIME-version: 1.0 To: John Spray Cc: Jan Kara , Austin S Hemmelgarn , linux-kernel@vger.kernel.org, tytso@mit.edu, adilger.kernel@dilger.ca, hughd@google.com, lczerner@redhat.com, hch@infradead.org, linux-ext4@vger.kernel.org, linux-mm@kvack.org, kyungmin.park@samsung.com, kmpark@infradead.org, Linux Filesystem Mailing List , linux-api@vger.kernel.org Subject: Re: [RFC 1/4] fs: Add generic file system event notifications References: <1429082147-4151-1-git-send-email-b.michalska@samsung.com> <1429082147-4151-2-git-send-email-b.michalska@samsung.com> <20150417113110.GD3116@quack.suse.cz> <553104E5.2040704@samsung.com> <55310957.3070101@gmail.com> <55311DE2.9000901@redhat.com> <20150417154351.GA26736@quack.suse.cz> <55312FEA.3030905@redhat.com> In-reply-to: <55312FEA.3030905@redhat.com> Content-type: text/plain; charset=windows-1252 Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFprBIsWRmVeSWpSXmKPExsVy+t/xq7rsJoahBn3vhC2+fulgsWj5+ozJ 4vSERUwWTz/1sVjMnt7MZPFveZHFrcurWCzONr1ht1j2YDOLxebvHWwWM+fdYbPYs/cki8Xl XXPYLO6t+c9q0drzk92B36Nlc7nHzll32T0WbCr12LxCy2PTp0nsHk1njjJ7vN93lc2jb8sq Ro8zC46we3zeJBfAFcVlk5Kak1mWWqRvl8CV0bP7AlvBTIGKqz9PMTUwdvF2MXJySAiYSOyZ +JYFwhaTuHBvPVsXIxeHkMBSRolnK9cwQjjPGCXmHNwMVsUroCWx/89ZZhCbRUBVYv7CXnYQ m01AX+LVjJVMILaoQITEn9P7WCHqBSV+TL4H1isioCZxpm0xI4jNLNDPLNH+XRvEFhZwk2je cJUFYtk5JonO+afAhnICLXvzbTnQUA6gBj2J+xe1IHrlJTavecs8gVFgFpIVsxCqZiGpWsDI vIpRNLU0uaA4KT3XUK84Mbe4NC9dLzk/dxMjJL6+7GBcfMzqEKMAB6MSD+8CFcNQIdbEsuLK 3EOMEhzMSiK8HNsMQoV4UxIrq1KL8uOLSnNSiw8xSnOwKInzzt31PkRIID2xJDU7NbUgtQgm y8TBKdXA2CQSe4zPOu2p48aOSbmWWjF+UyOqa15u2CSedkz+8/3KlolvVVS64g9ePxrfs4F9 3Y3Y3sy/eza4B3jJZd0sjg4768tzsSlxwbnKH6a78jewZVi47jz2jsM5R2e2ge+5LuVZu9wu XxJ+lXnWzaXvbvw07Qlygir30lccjlTQe2q9f8Y/I6cnSizFGYmGWsxFxYkAzQjQiasCAAA= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2279 Lines: 44 On 04/17/2015 06:08 PM, John Spray wrote: > > On 17/04/2015 16:43, Jan Kara wrote: >> On Fri 17-04-15 15:51:14, John Spray wrote: >>> On 17/04/2015 14:23, Austin S Hemmelgarn wrote: >>> >>>> For some filesystems, it may make sense to differentiate between a >>>> generic warning and an error. For BTRFS and ZFS for example, if >>>> there is a csum error on a block, this will get automatically >>>> corrected in many configurations, and won't require anything like >>>> fsck to be run, but monitoring applications will still probably >>>> want to be notified. >>> Another key differentiation IMHO is between transient errors (like >>> server is unavailable in a distributed filesystem) that will block >>> the filesystem but might clear on their own, vs. permanent errors >>> like unreadable drives that definitely will not clear until the >>> administrator takes some action. It's usually a reasonable >>> approximation to call transient issues warnings, and permanent >>> issues errors. >> So you can have events like FS_UNAVAILABLE and FS_AVAILABLE but what use >> would this have? I wouldn't like the interface to be dumping ground for >> random crap - we have dmesg for that :). > In that case I'm confused -- why would ENOSPC be an appropriate use of this interface if the mount being entirely blocked would be inappropriate? Isn't being unable to service any I/O a more fundamental and severe thing than being up and healthy but full? > > Were you intending the interface to be exclusively for data integrity issues like checksum failures, rather than more general events about a mount that userspace would probably like to know about? > > John > I think we should support both and leave the decision on what is to be reported or not to particular file systems keeping it to a reasonable extent, of course. The interface should hand it over to user space - acting as a go-between. I would though avoid any filesystem specific events (when it comes to specifying those), keeping it as generic as possible. BR Beata -- 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/