From owner-freebsd-current@freebsd.org Wed May 22 17:51:45 2019 Return-Path: Delivered-To: freebsd-current@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 5759215B36C0 for ; Wed, 22 May 2019 17:51:45 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from kib.kiev.ua (kib.kiev.ua [IPv6:2001:470:d5e7:1::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id B2DB591345; Wed, 22 May 2019 17:51:44 +0000 (UTC) (envelope-from kostikbel@gmail.com) Received: from tom.home (kib@localhost [127.0.0.1]) by kib.kiev.ua (8.15.2/8.15.2) with ESMTPS id x4MHpX4D066180 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO); Wed, 22 May 2019 20:51:36 +0300 (EEST) (envelope-from kostikbel@gmail.com) DKIM-Filter: OpenDKIM Filter v2.10.3 kib.kiev.ua x4MHpX4D066180 Received: (from kostik@localhost) by tom.home (8.15.2/8.15.2/Submit) id x4MHpXmD066178; Wed, 22 May 2019 20:51:33 +0300 (EEST) (envelope-from kostikbel@gmail.com) X-Authentication-Warning: tom.home: kostik set sender to kostikbel@gmail.com using -f Date: Wed, 22 May 2019 20:51:33 +0300 From: Konstantin Belousov To: Johannes Lundberg Cc: FreeBSD Current Subject: Re: Weirdness when writing to pseudofs file Message-ID: <20190522175133.GC2748@kib.kiev.ua> References: <6ec62e4d-9f93-ffe1-646c-3846c9308334@FreeBSD.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6ec62e4d-9f93-ffe1-646c-3846c9308334@FreeBSD.org> User-Agent: Mutt/1.11.4 (2019-03-13) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED,BAYES_00, DKIM_ADSP_CUSTOM_MED,FORGED_GMAIL_RCVD,FREEMAIL_FROM, NML_ADSP_CUSTOM_MED autolearn=no autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on tom.home X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 22 May 2019 17:51:45 -0000 On Wed, May 22, 2019 at 10:36:34AM -0700, Johannes Lundberg wrote: > Hi > > I'm fiddling with lindebugfs, which is based on pseudofs. When writing > to a file, > > this works: # echo  1 >> /path/to/file > > but this does not: # echo 1 > /path/to/file > > "Operation not supported." is returned before the pseudofs code is even > entered. > > Is this expected behavior? (if so, why?) Does the file exist ? Pseudofs does not implement VOP_CREATE(), which is reasonable.