Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 May 2019 20:51:33 +0300
From:      Konstantin Belousov <kostikbel@gmail.com>
To:        Johannes Lundberg <johalun@FreeBSD.org>
Cc:        FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: Weirdness when writing to pseudofs file
Message-ID:  <20190522175133.GC2748@kib.kiev.ua>
In-Reply-To: <6ec62e4d-9f93-ffe1-646c-3846c9308334@FreeBSD.org>
References:  <6ec62e4d-9f93-ffe1-646c-3846c9308334@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
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.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20190522175133.GC2748>