From owner-freebsd-hackers@freebsd.org Mon Jun 3 20:55:41 2019 Return-Path: Delivered-To: freebsd-hackers@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 DC71B15BDD13 for ; Mon, 3 Jun 2019 20:55:40 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: from mail-io1-f52.google.com (mail-io1-f52.google.com [209.85.166.52]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1O1" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 893266F5C8; Mon, 3 Jun 2019 20:55:39 +0000 (UTC) (envelope-from cse.cem@gmail.com) Received: by mail-io1-f52.google.com with SMTP id n5so15519361ioc.7; Mon, 03 Jun 2019 13:55:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:reply-to :from:date:message-id:subject:to:cc; bh=pZFvWHWHRKe4ZnU1uu46KDaQgId/fIcRJpYgZoQ0l+Y=; b=YrFYGidyQm9h9R/6S+gCFGVibGto5DH592Khho/fCn6XCCXdbtGkmDjDPS6x0QRyYC zazh/x69S4d7jNzmupA6pfGRnIMThlfdu1PFq5AyRh6j/U+hkcMoTMn9PZHPZocTwM7S J+FuuVfGTLz1Shj1hbi5Tbxwtt+LnomONwFsjgUuZ8nFT+CGOnGYxw4HSaphQ17Ow21y CRYjUTvQgaBKdPuX7kLHZVygsI7KQbeIbMvOYM2EqWDYgQF/n52t1+eTz3k6aycaHtMu Fbd4s4+ojdNY//VWz9qiwYZTdBDigcVhJaJpTdoSmmRlQyo0h88HbuedXc7GVoYTvrwx t7Uw== X-Gm-Message-State: APjAAAWeW3e0ydgz8z9ZiuAm8cZSbGvfYKdznOAq9G11WEu7fI6y1UAT wKpcunrbF3glTGLS06DlOVWlpvHc X-Google-Smtp-Source: APXvYqwagDo/JcXcqS8pwMrFAZV5sM8/89CCFUHob70wCZXFkQtRY58yCkmteK4FvlgHdOW06cRVmA== X-Received: by 2002:a6b:b593:: with SMTP id e141mr3970330iof.203.1559595338114; Mon, 03 Jun 2019 13:55:38 -0700 (PDT) Received: from mail-io1-f54.google.com (mail-io1-f54.google.com. [209.85.166.54]) by smtp.gmail.com with ESMTPSA id t133sm1717479iof.21.2019.06.03.13.55.37 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 03 Jun 2019 13:55:37 -0700 (PDT) Received: by mail-io1-f54.google.com with SMTP id k20so15494281ios.10; Mon, 03 Jun 2019 13:55:37 -0700 (PDT) X-Received: by 2002:a5d:88c6:: with SMTP id i6mr3767124iol.107.1559595337706; Mon, 03 Jun 2019 13:55:37 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Reply-To: cem@freebsd.org From: Conrad Meyer Date: Mon, 3 Jun 2019 13:55:27 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: How to VOP_RECLAIM on demand? To: Alan Somers Cc: FreeBSD Hackers Content-Type: text/plain; charset="UTF-8" X-Rspamd-Queue-Id: 893266F5C8 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; spf=pass (mx1.freebsd.org: domain of csecem@gmail.com designates 209.85.166.52 as permitted sender) smtp.mailfrom=csecem@gmail.com X-Spamd-Result: default: False [-4.36 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; HAS_REPLYTO(0.00)[cem@freebsd.org]; R_SPF_ALLOW(-0.20)[+ip4:209.85.128.0/17]; REPLYTO_ADDR_EQ_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_ALL(0.00)[]; MX_GOOD(-0.01)[cached: alt3.gmail-smtp-in.l.google.com]; RCPT_COUNT_TWO(0.00)[2]; NEURAL_HAM_SHORT(-0.99)[-0.992,0]; FORGED_SENDER(0.30)[cem@freebsd.org,csecem@gmail.com]; R_DKIM_NA(0.00)[]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:209.85.128.0/17, country:US]; TAGGED_FROM(0.00)[]; FROM_NEQ_ENVFROM(0.00)[cem@freebsd.org,csecem@gmail.com]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000,0]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; DMARC_NA(0.00)[freebsd.org]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[52.166.85.209.list.dnswl.org : 127.0.5.0]; SUBJECT_ENDS_QUESTION(1.00)[]; IP_SCORE(-2.35)[ip: (-6.04), ipnet: 209.85.128.0/17(-3.39), asn: 15169(-2.29), country: US(-0.06)] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 03 Jun 2019 20:55:41 -0000 It could be done with a sysctl, or even an ioctl on /dev/fuse (although, there is nothing FUSE-specific about the idea for a test utility). So I'd just add a sysctl for that functionality. Best, Conrad On Mon, Jun 3, 2019 at 1:39 PM Alan Somers wrote: > > It would be useful if I could trigger VOP_RECLAIM on demand for a > certain file or pathname. There are some edge cases in fusefs that I > can't test otherwise. But I don't see any way to do it. Is such a > thing possible? Would it be worth adding a special syscall for this > purpose? It could be guarded with INVARIANTS so it wouldn't affect > production builds. > -Alan > _______________________________________________ > freebsd-hackers@freebsd.org mailing list > https://lists.freebsd.org/mailman/listinfo/freebsd-hackers > To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"