From owner-svn-src-head@freebsd.org Wed Mar 23 03:41:26 2016 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 538879D94EE; Wed, 23 Mar 2016 03:41:26 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-ob0-f178.google.com (mail-ob0-f178.google.com [209.85.214.178]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 22682156D; Wed, 23 Mar 2016 03:41:25 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-ob0-f178.google.com with SMTP id xj3so2526510obb.0; Tue, 22 Mar 2016 20:41:25 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:reply-to:in-reply-to:references :date:message-id:subject:from:to:cc; bh=49ZuljV8eHw3pWAZOup24CEO6Lbbhlrhm8aoRVrcwfw=; b=k1eFWGlsW8VRzC6QZdvgIi1iX05CnVvs6QyWjKwNS6NaVmaiBrVOqqi3VnPCWAv/+Y 51ECFURBdlqDiebJhWpeicEWlEgoasvGIsPbKilo7AZFyuAv6ZfOEUYMqTmlhrPNtWUZ 3hmDyFYOdmEesZaRcFptdwbzvF5dX9baBV5TF7xFE8l8WMGMBJUvMBf+xbDzW+SxEOMJ B94YJv/1Esc4e2CcC5xCMCG702EUkvQ83RCDwJdqW/VlMAFPsme3obDltNmEOQaQCyo1 9X92SjghZAmcNcuGJ7SCw7ww8doVTj37m0XGAxYWgrRsH8GVBLwi3tUJ4XMpwVhKQrkR sJ2Q== X-Gm-Message-State: AD7BkJJF5GjpY//K8CeH8rIS2KB2Qez23pGuauTwIu7Uq8t2rwQJQJbcMnT7bH6EWmQAWA== X-Received: by 10.182.96.99 with SMTP id dr3mr222034obb.79.1458703109919; Tue, 22 Mar 2016 20:18:29 -0700 (PDT) Received: from mail-ob0-f170.google.com (mail-ob0-f170.google.com. [209.85.214.170]) by smtp.gmail.com with ESMTPSA id 66sm153823otc.37.2016.03.22.20.18.29 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 22 Mar 2016 20:18:29 -0700 (PDT) Received: by mail-ob0-f170.google.com with SMTP id ts10so2239308obc.1; Tue, 22 Mar 2016 20:18:29 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.182.58.97 with SMTP id p1mr224549obq.33.1458703109436; Tue, 22 Mar 2016 20:18:29 -0700 (PDT) Reply-To: cem@FreeBSD.org Received: by 10.157.36.202 with HTTP; Tue, 22 Mar 2016 20:18:29 -0700 (PDT) In-Reply-To: References: <201603222241.u2MMf7ub090070@repo.freebsd.org> Date: Tue, 22 Mar 2016 20:18:29 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: svn commit: r297201 - in head: share/man/man4 sys/dev/filemon From: Conrad Meyer To: Benjamin Kaduk Cc: Bryan Drewery , "svn-src-head@freebsd.org" , "svn-src-all@freebsd.org" , "src-committers@freebsd.org" Content-Type: text/plain; charset=UTF-8 X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Mar 2016 03:41:26 -0000 On Tue, Mar 22, 2016 at 7:46 PM, Benjamin Kaduk wrote: > On Tue, Mar 22, 2016 at 9:11 PM, Bryan Drewery wrote: >> >> The manpage for close(2) does document some errors, one being ENOSPC. The >> close(2) behavior of returning write(2), really VOP_WRITE(9), errors though >> is specific to filemon since all of the writes are hidden and this is the >> only place to return an error. >> ... > > filemon is not unique in this regard; the AFS filesystem buffers writes > locally and in some cases errors writing to the remote server can be delayed > until close(). Right. filemon is not the only case. Another example would be TCP socket fds, e.g., when the connection is RST after write(2) queues data on the outgoing sockbuf but before it is transmitted. Best, Conrad