Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp3531852ybb; Mon, 6 Apr 2020 10:29:35 -0700 (PDT) X-Google-Smtp-Source: APiQypLkzxzb+chy3BpinabiDirB8j1evj37yMFP8Vhp4f2tLKkVfTn+XTAywrB7DEkZ+e1RcbXW X-Received: by 2002:a9d:1a4:: with SMTP id e33mr17868611ote.343.1586194174870; Mon, 06 Apr 2020 10:29:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586194174; cv=none; d=google.com; s=arc-20160816; b=H9eWVPa8UEv6xuA1aLXvytTHBD7wPej2OczA/+yHrIatr/9/1Nfkx2w7JV+xLmeGU2 pgfXYxC9w1W1Nqpc+flbCVLh5NL+L3fw4O/voK6A8GA/wYoJpg7X4iRFsX0NZ3aA2mE8 5bW/coHv/bZ3eF3bNp0jylp1VWI8Ivay2XwHzd4PABQaJjn5rkrwwoMQOgETwz978ZHJ +QCVXnxpjlgqMosPM0AZAU7C5I8TM9L6exyeqcKsTq8Ia0TFB3D6VLjYleQDcdkkVoDB xqPbtK4BmXZ5boy9nHG9jFl6PcQr8sSdq+ex/CJk8M0rW4rRJ2Oe5emVBwdPNuGVhbN9 KdQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=J+Y9L70e16lKhDcwGZfPAxg2BDPW05TrhY2Z4iCYrmA=; b=i3jkvW40/boYkXdNkGgJug9NzyP39kmXuyb36sz+6RpakY5HWB85YX/NjkPZb3nLsi iIVnh1tg6ZOfjvkPAZOrQDTZTUSZJ4OJbWLd3+tjMoatAKgn3H605URfO+eEbY3hMcmZ sYgeVvCnfhjcN2GJJppBxFXu9v8GlQrEpZWOXXyxcrPqeW7GXCUDVJMMjJl8imWzAXTA b4dIfV996+uTAGA1IDK4sydW1NUbRB/nw54h1Afs2txZZuOPWykkjMR4j3LMwL/YSTCo 8JTYmHjKfHOftwEgfMp9kVc8sUGZza9bqWdRLxBblmminZHja/Bnj9g0sWxOZSrZb94z TcAg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p19si30489oic.39.2020.04.06.10.29.21; Mon, 06 Apr 2020 10:29:34 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727070AbgDFRTt (ORCPT + 99 others); Mon, 6 Apr 2020 13:19:49 -0400 Received: from nautica.notk.org ([91.121.71.147]:42588 "EHLO nautica.notk.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726837AbgDFRTt (ORCPT ); Mon, 6 Apr 2020 13:19:49 -0400 Received: by nautica.notk.org (Postfix, from userid 1001) id 9E6C7C01D; Mon, 6 Apr 2020 19:19:47 +0200 (CEST) From: Dominique Martinet To: v9fs-developer@lists.sourceforge.net, Sergey Alirzaev , linux-fsdevel@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Dominique Martinet Subject: [PATCH] 9p: document short read behaviour with O_NONBLOCK Date: Mon, 6 Apr 2020 19:19:32 +0200 Message-Id: <1586193572-1375-1-git-send-email-asmadeus@codewreck.org> X-Mailer: git-send-email 1.7.10.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dominique Martinet Regular files opened with O_NONBLOCK allow read to return after a single round-trip with the server instead of trying to fill buffer. Add a few lines in 9p documentation to describe that. Signed-off-by: Dominique Martinet --- Documentation/filesystems/9p.txt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/filesystems/9p.txt b/Documentation/filesystems/9p.txt index fec7144e817c..3fb780ffdf23 100644 --- a/Documentation/filesystems/9p.txt +++ b/Documentation/filesystems/9p.txt @@ -133,6 +133,16 @@ OPTIONS cache tags for existing cache sessions can be listed at /sys/fs/9p/caches. (applies only to cache=fscache) +BEHAVIOR +======== + +This section aims at describing 9p 'quirks' that can be different +from a local filesystem behaviors. + + - Setting O_NONBLOCK on a file will make client reads return as early + as the server returns some data instead of trying to fill the read + buffer with the requested amount of bytes or end of file is reached. + RESOURCES ========= -- 2.26.0