From owner-freebsd-hackers@freebsd.org Wed Apr 7 04:14:25 2021 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 66C385C8E14 for ; Wed, 7 Apr 2021 04:14:25 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4FFWHj15gGz3mfP for ; Wed, 7 Apr 2021 04:14:25 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 23C745C8C2C; Wed, 7 Apr 2021 04:14:25 +0000 (UTC) Delivered-To: hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 238235C8D92 for ; Wed, 7 Apr 2021 04:14:25 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4FFWHg377rz3mWc; Wed, 7 Apr 2021 04:14:23 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: by mail-wr1-x42e.google.com with SMTP id e12so3299274wro.11; Tue, 06 Apr 2021 21:14:23 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=9NvYAYDxuQoKWtpB8FszHAMQh1H1XsfX8nJCHAgP/nE=; b=ENPAmwI7irIYwTxUV8U+iRipIqAOBv4abIlB1gPw23u+30WCzZTBtyZPSoXzjrUNvT vANG3/HFXXWl07hV4Pe2OgDvml6rcUkuGC77iwzquBIOiXiPLL3YJHpyyyB7WKaPPO1E j2cqJYcujdflb9Al/aFXL8l0P/kk+GVUZSclrXNVo0uYAtj6TgTQ/M6VhjQZ7ng8Rc3W uqv7tjdaUxbDA36zvs5+u45pyPrd4WkRXeOufUrIIOyI3HAfHLnI7tk3skv7j7Vfs/pa eNVijO0ZmafqKfeed2Fm1cdeQTXcqIIVEuF1xQH4fY6PnuV+WycXGvfs9J1YLsEG9TdH HL3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=9NvYAYDxuQoKWtpB8FszHAMQh1H1XsfX8nJCHAgP/nE=; b=HJa6IACrfR92yCziUzU37roISr62cm11zBK2nQLkf1Uen+eMJ/94VrmAHh5PaWA2T0 /KMagq4z2BO0qlI/5hmQH3dyyZiFIErDa3bAi4NxmPL+lSplWargrqZBxARFzz9MQSZx FJO2UgxH15y05bbKDg5YDVbcR5Uy0UxKoNNQ1C7QBRd6pcS/Nr7U654Wa4+vTOaBHUxm o1scEPB3N3hPgRsftAuFjX0h87dE7FPqQXn7/Ffr7Tce5cUm+UTKlaQlzlZDAU60gTwH yXLBiSdNfbhOZ/vJSHKxKuakhQwXyU1xlPJLh6OMKHsWBuGUbaPPtvNCwstyM8BUZVu0 VUnw== X-Gm-Message-State: AOAM532jxkC8uYJCsJm93dZVUEnltBceDR/UincuB6duthg4xjwvuK1H X+e0xbEnsqxNBeAYAlCMJdk= X-Google-Smtp-Source: ABdhPJzPKCUwzh964dZ0YHE5eOMhTWimGOaTKLn9x5MRdTqtYywrbSTvHPGn+hazJJBla+YmdkBT7g== X-Received: by 2002:adf:f143:: with SMTP id y3mr1826907wro.198.1617768861829; Tue, 06 Apr 2021 21:14:21 -0700 (PDT) Received: from rimwks.local ([2001:470:1f15:3d8:7285:c2ff:fe37:5722]) by smtp.gmail.com with ESMTPSA id d20sm5967241wmd.48.2021.04.06.21.14.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 21:14:21 -0700 (PDT) From: Rozhuk Ivan X-Google-Original-From: Rozhuk Ivan Date: Wed, 7 Apr 2021 07:14:19 +0300 To: Warner Losh Cc: Gleb Popov , Damjan Jovanovic , "freebsd-hackers@freebsd.org" Subject: Re: RFC: possible issue with kqueue Message-ID: <20210407071419.6dc84f3c@rimwks.local> In-Reply-To: References: <20210327131011.e16291cac86475e75a33812c@FreeBSD.org> <20210330181402.GM14975@funkthat.com> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4FFWHg377rz3mWc X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=ENPAmwI7; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of rozhukim@gmail.com designates 2a00:1450:4864:20::42e as permitted sender) smtp.mailfrom=rozhukim@gmail.com X-Spamd-Result: default: False [-0.50 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; RCVD_COUNT_THREE(0.00)[3]; TO_DN_ALL(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-0.997]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; TAGGED_FROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::42e:from]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; NEURAL_HAM_LONG(-1.00)[-1.000]; TAGGED_RCPT(0.00)[]; MIME_GOOD(-0.10)[text/plain]; NEURAL_SPAM_MEDIUM(1.00)[1.000]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::42e:from:127.0.2.255]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::42e:from]; FREEMAIL_CC(0.00)[freebsd.org,gmail.com]; RCVD_TLS_ALL(0.00)[]; SUSPICIOUS_RECIPS(1.50)[]; MAILMAN_DEST(0.00)[hackers] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2021 04:14:25 -0000 On Sat, 3 Apr 2021 11:21:50 -0600 Warner Losh wrote: > > > https://reviews.freebsd.org/D19690 > > > > > > I do not finish this. > > > Plan was: implement this and catch unmount notify in my FAM, that > > > in glib20. > > > > > > > Hum, but I do see mount/unmount events in devd on CURRENT! > > > > I did this in conjunction with the forced unmount work of chs@. Where I can learn more about this? From owner-freebsd-hackers@freebsd.org Wed Apr 7 04:50:28 2021 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 907BD5C9F74 for ; Wed, 7 Apr 2021 04:50:28 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FFX5J1tXHz3ryP for ; Wed, 7 Apr 2021 04:50:28 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mailman.nyi.freebsd.org (Postfix) id 3EEE05CA062; Wed, 7 Apr 2021 04:50:28 +0000 (UTC) Delivered-To: hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 3D9E15C9FFB for ; Wed, 7 Apr 2021 04:50:28 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4FFX5J0zXwz3rp0 for ; Wed, 7 Apr 2021 04:50:28 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x72d.google.com with SMTP id q26so17482444qkm.6 for ; Tue, 06 Apr 2021 21:50:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=jRD1QFH/rgzfhYmFqtyKOmgZv9DvaTXsSNXZGWIGi9I=; b=a9iXUJ6fHDlZqUJDFeQAoCBXdIyegfPyDbvVu5bLqX6ExQBsNNMTcnNoLwBk7qBZa5 k1CDycbazK+GFrGb8HPA3iS5e4zOPM/lPCpmEfl/b187BXjjqav5QojOWYludUT+W9zJ CYSH+LIqrSmJXlU3tob7wVItAwQJ7/jlf9K3Qo00CijvWht7A4iFO4KebuHq01LrIPzk aa0OE5y4xy4dCme8YYBuImypFk8/1hQiKXxvDcqi5ZJcAjxC7jAuyTUBx3c1nHLhdCOl 6QJR672aU7T7tuffvEmyZjNyN/Awlbzg8FD7kSgD4RQ5FgRd7/9GXPYgsTv1dVkYN3U1 g50A== 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:from:date :message-id:subject:to:cc; bh=jRD1QFH/rgzfhYmFqtyKOmgZv9DvaTXsSNXZGWIGi9I=; b=nmdA+Q1wsXz+TXPYYacJuk0aQl5gZ6JymxvvhL5hPC6Dl5aM4Vwu0qZAafN1ZO0/Cq nC9oMLffvFO9dhhK9EA+DvqnBXmtPUp3UYvsQ3MLf1jU3gz0o/985iNPvzMpwXepPVtU sHsllLGn+G8HgdufNZbNJM9oWNfuNp3HM9n2mMj6xpIC6CyufoVxVB1mNLY63YFBLkFO In0Fz+cAxlqMLpmWMS+6K1MofsPZoQ8vE7Vr9HHl0el5EsmsHSZhSFt4bcBjlZtQPc4s +mf0Ap/FmFTl1W3tKE43iA1+JUCCA47YsAsESxM72H/uqE1++zzo9+3tD4cdxc8NzZbZ xy1w== X-Gm-Message-State: AOAM531SIV6GoB6j+bOnrpGHcxmsyrisNCr5YJmaD+xIAHaoMcUqmUgU HczBbsjQLLevQa3geJFStF2OOyyxfUOCkf+NAKFusg== X-Google-Smtp-Source: ABdhPJxGRjMYnOfml8v5trtqgTSzr6iOQR6dIgXn6fxAq9kMByl+zu9jbl9FPDY8yx2z1EDWKAt50hJ6Du6oEh8p9oE= X-Received: by 2002:a37:a085:: with SMTP id j127mr1403340qke.206.1617771027143; Tue, 06 Apr 2021 21:50:27 -0700 (PDT) MIME-Version: 1.0 References: <20210327131011.e16291cac86475e75a33812c@FreeBSD.org> <20210330181402.GM14975@funkthat.com> <20210407071419.6dc84f3c@rimwks.local> In-Reply-To: <20210407071419.6dc84f3c@rimwks.local> From: Warner Losh Date: Tue, 6 Apr 2021 22:50:16 -0600 Message-ID: Subject: Re: RFC: possible issue with kqueue To: Rozhuk Ivan Cc: Gleb Popov , Damjan Jovanovic , "freebsd-hackers@freebsd.org" X-Rspamd-Queue-Id: 4FFX5J0zXwz3rp0 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_RCPT(0.00)[]; REPLY(-4.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2021 04:50:28 -0000 On Tue, Apr 6, 2021 at 10:14 PM Rozhuk Ivan wrote: > On Sat, 3 Apr 2021 11:21:50 -0600 > Warner Losh wrote: > > > > > https://reviews.freebsd.org/D19690 > > > > > > > > I do not finish this. > > > > Plan was: implement this and catch unmount notify in my FAM, that > > > > in glib20. > > > > > > > > > > Hum, but I do see mount/unmount events in devd on CURRENT! > > > > > > > I did this in conjunction with the forced unmount work of chs@. > > > Where I can learn more about this? > The devd stuff is documented in devd.conf(5). The umount stuff is documented in the commit message for hash d79ff54b5caad61e657b9cc651aa256f3949b97a commit d79ff54b5caad61e657b9cc651aa256f3949b97a Author: Chuck Silvers Date: Mon May 25 23:47:31 2020 +0000 This commit enables a UFS filesystem to do a forcible unmount when the underlying media fails or becomes inaccessible. For example when a USB flash memory card hosting a UFS filesystem is unplugged. ... https://cgit.freebsd.org/src/commit/?id=d79ff54b5caad61e657b9cc651aa256f3949b97a has the whole commit message. I'm not aware of other documentation for it though. Warner From owner-freebsd-hackers@freebsd.org Wed Apr 7 04:58:25 2021 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 942845CA7E3 for ; Wed, 7 Apr 2021 04:58:25 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mailman.nyi.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 4FFXGT28t1z3sZ5 for ; Wed, 7 Apr 2021 04:58:25 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: by mailman.nyi.freebsd.org (Postfix) id 486475CA83F; Wed, 7 Apr 2021 04:58:25 +0000 (UTC) Delivered-To: hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 4823D5CA652 for ; Wed, 7 Apr 2021 04:58:25 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: from mail-lf1-x132.google.com (mail-lf1-x132.google.com [IPv6:2a00:1450:4864:20::132]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4FFXGT1KL3z3scJ; Wed, 7 Apr 2021 04:58:24 +0000 (UTC) (envelope-from rozhuk.im@gmail.com) Received: by mail-lf1-x132.google.com with SMTP id j18so2566058lfg.5; Tue, 06 Apr 2021 21:58:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:date:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=iRl7PnasLexih1g+a/vPBC0Xq/BvnepREqxo2exlRQ0=; b=u8J/Jhrg0IYVH6qnQL7/mPNdA/x/McSr6oCEYVZ8l7/anP7HSfZf9pPFxPJ74E4uwY HXRWO5tujPFfurzq+DDJx9VyZrhKyMTz/qO/uXKBzgpr1bVUBvCLE/88GJvNyayy2GdU hqUJxMtjfAEPDZD/0UlCisZ7ZZJlGVtnQ4/iNfYU3J1oDT9G3Uv/mXyp23EDFCKkn3jS mHniV6vWjCic+UNXGGDEqRANmp+8sY8JLHzs13g2pb12pBam42i8BTWt3AoPwM85T/XE iBU2GrUQnWg+lNTTRnIsCxQ7myymPI6tXjLlKqNtEG3vL8ImhYgFVlJgIyS6YDgzj0v7 3Ung== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:date:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=iRl7PnasLexih1g+a/vPBC0Xq/BvnepREqxo2exlRQ0=; b=WF4RFnOC8VnHHHyreMZXy2FjoIKuQPgOuNx4J7mR64sGljlSWqXmLqhKj39MB5lFna ML8UmGfik1iav0Q4xNj1Wd0c4IjMdPUCVWJs7GTbHJCYhxid7DidrrMRKvXAT+1FNYNT Ki4u5NzHdusJWNks597Zb2pwJuLsrlKafOK0xaUmkVbv9ewQ0L9BqGRu3AOhpKMHzyN2 3xxSh357MA16iYee5sqDixvkKSIAxzKV8pVJHkLSLRnD6feOaUBx2wV7kWHozOf9yvRl VMcRr8dCH/HC8hgsH7K3D+D3D2LT4Tl/rj2r2vacG4x6CcYeuuOUwBvOY8jQEEzttRpx 54Tw== X-Gm-Message-State: AOAM533Yz1bt95B/XBn5Rfq0NR0ksfd8L6BdqtsVtnkb3JdsZZnJJ8mS rAJ/hCDuax4FlJvvOe8sJJ+T3CxyefBNzbh5 X-Google-Smtp-Source: ABdhPJzLkTXw+dwinQffgFgbv39hKuKPwXt795ey8oy3yw8rn/uhT61RPXiwLqQXeKSV2tpgM3Rciw== X-Received: by 2002:a19:ee16:: with SMTP id g22mr1148825lfb.513.1617771502513; Tue, 06 Apr 2021 21:58:22 -0700 (PDT) Received: from rimwks.local ([2001:470:1f15:3d8:7285:c2ff:fe37:5722]) by smtp.gmail.com with ESMTPSA id i6sm682252lfu.41.2021.04.06.21.58.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 06 Apr 2021 21:58:22 -0700 (PDT) From: Rozhuk Ivan X-Google-Original-From: Rozhuk Ivan Date: Wed, 7 Apr 2021 07:58:19 +0300 To: Warner Losh Cc: Gleb Popov , Damjan Jovanovic , "freebsd-hackers@freebsd.org" Subject: Re: RFC: possible issue with kqueue Message-ID: <20210407075819.52fd2eb7@rimwks.local> In-Reply-To: References: <20210327131011.e16291cac86475e75a33812c@FreeBSD.org> <20210330181402.GM14975@funkthat.com> <20210407071419.6dc84f3c@rimwks.local> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4FFXGT1KL3z3scJ X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_RCPT(0.00)[]; REPLY(-4.00)[]; TAGGED_FROM(0.00)[] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2021 04:58:25 -0000 On Tue, 6 Apr 2021 22:50:16 -0600 Warner Losh wrote: > > > > > https://reviews.freebsd.org/D19690 > > > > > > > > > > I do not finish this. > > > > > Plan was: implement this and catch unmount notify in my FAM, > > > > > that in glib20. > > > > > > > > > > > > > Hum, but I do see mount/unmount events in devd on CURRENT! > > > > > > > > > > I did this in conjunction with the forced unmount work of chs@. > > > > > > Where I can learn more about this? > > > > The devd stuff is documented in devd.conf(5). > > The umount stuff is documented in the commit message for hash > d79ff54b5caad61e657b9cc651aa256f3949b97a > Sorry, it is unclear to me: who uses mount/unmount devd notifications? From owner-freebsd-hackers@freebsd.org Wed Apr 7 05:09:06 2021 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 426825CAAA1 for ; Wed, 7 Apr 2021 05:09:06 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mailman.nyi.freebsd.org (mailman.nyi.freebsd.org [IPv6:2610:1c1:1:606c::50:13]) by mx1.freebsd.org (Postfix) with ESMTP id 4FFXVn0D8hz3snF for ; Wed, 7 Apr 2021 05:09:05 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mailman.nyi.freebsd.org (Postfix) id 079935CA927; Wed, 7 Apr 2021 05:09:05 +0000 (UTC) Delivered-To: hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 076625CA926 for ; Wed, 7 Apr 2021 05:09:05 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-qk1-x72d.google.com (mail-qk1-x72d.google.com [IPv6:2607:f8b0:4864:20::72d]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4FFXVm6c02z3t00 for ; Wed, 7 Apr 2021 05:09:04 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: by mail-qk1-x72d.google.com with SMTP id v70so17502574qkb.8 for ; Tue, 06 Apr 2021 22:09:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=GLutIjv5TJzem273IY9NB8o+K9Bwh01qhZRX6oV108E=; b=i7NV2n36vHtEVe5jKBA74MMR0hNOCsNm09Gu70gByuCKyeseFBag546tR6ahKkSCgA jgki9duED1NcY7qTzqKKSy+w+vg1I8iiK0kiZdbLIK0tu7BSfIIOkQxeaWehrGbwEVXR liCGJ94j5zLySdfnFM/Fnt1mpj6CAZgs7Ja6v5VPf5Q5BQECSfpjsb9+gP7IcasGDqTV wgOYO41aMuNmxN7WT8tHPTVHlooBXDHGcPn4xfZYAuXsdOMYJOFI+6BosbHCYnKJav86 aqth6AM/tzHsLcNhI6OghPODluwzBvvFAdSndCPtV8pabiT3EUBZCLhQAMDAYeNKDJo1 LZDg== 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:from:date :message-id:subject:to:cc; bh=GLutIjv5TJzem273IY9NB8o+K9Bwh01qhZRX6oV108E=; b=ks9kSAKxIU+9MlPSCmvfJg0S8ddRumOh71aF+2uXRHkWTyn3rdSyWJ+nSV7bBwzMFB VhvTP7Q4lF+4rT9xQLLadXQpfBpf1Ybm7oQ+2l/EXqaPAzGuknzfhBCZQBaoz1g6FtiJ 3ZCkPaZ84DMVuuKYnZ9UR/hAPeGuffocaK0FC/fAt1ozxm3VD0g9RpzyaUlCXtGAKXGZ 4NNTpxmzs0SWmimlf6I0MieLX9siCEXHJw+Zv/TJ/IgUOXQaHn5JUHAeLQmNPS2+UOLx XgR3tNBW59SsuCPK+vC0hPwhwMspNJ9PdlET+o8DK0cE/wcxqNhgoSRhyrOZKuVpwH7t M0/A== X-Gm-Message-State: AOAM533EPBGwQBmpeZide5anCtJ6kV7lCuCLyAlIw7KFeOpN3wTyvsbQ GytwBfjpzvHCCMEfTDlBHDu85WMl5ZtMtNTO0arDLg== X-Google-Smtp-Source: ABdhPJx9pTJJrjdxm8WLGqspCjFhQFUZOOGJfbW6PyK20GaK3r13c8TUDUCr+p9sV6i0kemdYQuou/Ouv0Xo2oNG7fc= X-Received: by 2002:a37:a48a:: with SMTP id n132mr1409778qke.359.1617772144262; Tue, 06 Apr 2021 22:09:04 -0700 (PDT) MIME-Version: 1.0 References: <20210327131011.e16291cac86475e75a33812c@FreeBSD.org> <20210330181402.GM14975@funkthat.com> <20210407071419.6dc84f3c@rimwks.local> <20210407075819.52fd2eb7@rimwks.local> In-Reply-To: <20210407075819.52fd2eb7@rimwks.local> From: Warner Losh Date: Tue, 6 Apr 2021 23:08:51 -0600 Message-ID: Subject: Re: RFC: possible issue with kqueue To: Rozhuk Ivan Cc: Gleb Popov , Damjan Jovanovic , "freebsd-hackers@freebsd.org" X-Rspamd-Queue-Id: 4FFXVm6c02z3t00 X-Spamd-Bar: ---- Authentication-Results: mx1.freebsd.org; none X-Spamd-Result: default: False [-4.00 / 15.00]; TAGGED_RCPT(0.00)[]; REPLY(-4.00)[] Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Apr 2021 05:09:06 -0000 On Tue, Apr 6, 2021, 10:58 PM Rozhuk Ivan wrote: > On Tue, 6 Apr 2021 22:50:16 -0600 > Warner Losh wrote: > > > > > > > https://reviews.freebsd.org/D19690 > > > > > > > > > > > > I do not finish this. > > > > > > Plan was: implement this and catch unmount notify in my FAM, > > > > > > that in glib20. > > > > > > > > > > > > > > > > Hum, but I do see mount/unmount events in devd on CURRENT! > > > > > > > > > > > > > I did this in conjunction with the forced unmount work of chs@. > > > > > > > > > Where I can learn more about this? > > > > > > > The devd stuff is documented in devd.conf(5). > > > > The umount stuff is documented in the commit message for hash > > d79ff54b5caad61e657b9cc651aa256f3949b97a > > > > > Sorry, it is unclear to me: who uses mount/unmount devd notifications? > Devd has a config file that you can use to configure scripts that run when mount/umount happens. The bsdisk port uses it to track what was mounted. Warner > From owner-freebsd-hackers@freebsd.org Thu Apr 8 07:25:31 2021 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 73B725D29DD for ; Thu, 8 Apr 2021 07:25:31 +0000 (UTC) (envelope-from freebsd-hackers@dino.sk) Received: from mailhost.netlabit.sk (mailhost.netlabit.sk [84.245.65.72]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4FGCTk2mSKz4Vyj for ; Thu, 8 Apr 2021 07:25:29 +0000 (UTC) (envelope-from freebsd-hackers@dino.sk) Received: from zeta.dino.sk (fw3.dino.sk [84.245.95.254]) (AUTH: LOGIN milan) by mailhost.netlabit.sk with ESMTPA; Thu, 08 Apr 2021 09:25:20 +0200 id 00DD0407.606EAFE0.00018236 Date: Thu, 8 Apr 2021 09:25:20 +0200 From: Milan Obuch To: freebsd-hackers@freebsd.org Subject: newvers.sh request Message-ID: <20210408092520.401b3772@zeta.dino.sk> X-Mailer: Claws Mail 3.17.8 (GTK+ 2.24.33; i386-portbld-freebsd11.4) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4FGCTk2mSKz4Vyj X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of freebsd-hackers@dino.sk designates 84.245.65.72 as permitted sender) smtp.mailfrom=freebsd-hackers@dino.sk X-Spamd-Result: default: False [-2.81 / 15.00]; RCVD_VIA_SMTP_AUTH(0.00)[]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_HAS_DN(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[84.245.65.72:from]; TO_MATCH_ENVRCPT_ALL(0.00)[]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[dino.sk]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[84.245.65.72:from:127.0.2.255]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.51)[-0.508]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:5578, ipnet:84.245.64.0/18, country:SK]; MIME_TRACE(0.00)[0:+]; MAILMAN_DEST(0.00)[freebsd-hackers]; RCVD_COUNT_TWO(0.00)[2] X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Apr 2021 07:25:31 -0000 Hi, in old svn days, uname output reflected svn revision number. We had svnlite in base system (if not set WITHOUT_SVN) and everything was done automagically when doing buildkernel process. Now, this is gone. Support for various revision string generation is built in sys/conf/newvers.sh script. When source tree is being tracket with git (recently gitup support is added), box where kernel is being built needs git installed (or gitup as an alternative) to be able to include this information in version string. For my use case, this is not practical. I am using git to track sources (or I am learning how to do it, first steps are done but still, it is different and I am figuring new features as I am trying), but I'd strongly prefer to use one box with larger disk capacity to hold all sources, mount needed worktree via nfs on box running buildkernel process, where I have minimal install, sometimes no port at all. Note: only worktree, not a full repository, so even having git installed would not help. Looking in newvers.sh script I found gitup was added and this inspired me to add just one more method covering my needs for such a distributed or detached build. Gitup loads its revision string from file .gituprevision, which is created when doing gitup src (exact invocation not relevant here). This file is just included verbatim in version string... so I hacked together similar thing: --- newvers.sh.orig 2021-04-08 07:35:02.506801000 +0200 +++ newvers.sh 2021-04-08 08:08:32.100985000 +0200 @@ -230,6 +230,11 @@ done fi +if findvcs .drevision; then + drevision="${VCSTOP}/.drevision" + echo "drevision ${drevision}" > ${VCSTOP}/.drevision-check +fi + if [ -n "$svnversion" ] ; then svn=$(cd ${SYSDIR} && $svnversion 2>/dev/null) case "$svn" in @@ -275,12 +280,16 @@ fi fi +if [ -n "$drevision" ] ; then + raw=" $(cat $drevision)" +fi + [ ${include_metadata} = "if-modified" -a ${modified} = "yes" ] && include_metadata=yes if [ ${include_metadata} != "yes" ]; then - VERINFO="${VERSION}${svn}${git}${hg} ${i}" + VERINFO="${VERSION}${svn}${git}${hg}${raw} ${i}" VERSTR="${VERINFO}\\n" else - VERINFO="${VERSION} #${v}${svn}${git}${hg}: ${t}" + VERINFO="${VERSION} #${v}${svn}${git}${hg}${raw}: ${t}" VERSTR="${VERINFO}\\n ${u}@${h}:${d}\\n" fi just using .drevision file for that purpose in order to explicitly signal usage of different mechanism for revision string generation. Variable names used are arbitrary. It is hard to invent something new, nice and meaningfull :) Usage is then - git fetch to update repository - git checkout to (new) worktree as needed, altering files as needed, adding patches as needed etc. for intended test - run some script generating .drevision file (site dependent, it could be based on how git hash et al. is used to generate revision string in order to remain compatible with the rest of the world) - mount worktree on a box where buildkernel is intended to run - run make buildkernel as usual I did this experiment on older 13-CURRENT tree, but idea could be used on newer tree as well. For curious: I am hacking on Zynq kernel and modules, there are generally not much resources, storage on SD card can wear fast, my setup allows me to minimize some bad side effects by reduced number of writes using nfs for large storage requirements. Also, editing is done on another box, only build process runs directly on Zynq board. Regards, Milan From owner-freebsd-hackers@freebsd.org Sat Apr 10 05:49:13 2021 Return-Path: Delivered-To: freebsd-hackers@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 555FA5CB457 for ; Sat, 10 Apr 2021 05:49:13 +0000 (UTC) (envelope-from richidubey@gmail.com) Received: from mail-lj1-x22c.google.com (mail-lj1-x22c.google.com [IPv6:2a00:1450:4864:20::22c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 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 4FHPFh4rftz3vCr for ; Sat, 10 Apr 2021 05:49:12 +0000 (UTC) (envelope-from richidubey@gmail.com) Received: by mail-lj1-x22c.google.com with SMTP id r20so8926455ljk.4 for ; Fri, 09 Apr 2021 22:49:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=oktnYNpq/GJnHfjRgxXzx73NX4P9QXLvYLPpcKUpLLY=; b=UudVJOmcx6v3WILOAUh0zLirsdNTOu3dImDEsanCeQznJnS7JPlBKini3iPCdSfdRS yJYTkL+iq49Oq7t0rFvBOCD9OX7T1j46hu3C7hu/7mIh2tVrM7OKfGKlliNU22hIHKw1 VVY+VRBDNp7aJcPTheLduxce+cNHVkRgN7eAVDPYdq7Mt116/v8UzePABsSlVc9CjcWb nVrt0UT4bfjQV22tCqjio4oQXjUo5Rk0PQKbE/OulkoM98eAIl+8JNyBazzIIU/m8531 Vs/PGwBXpxBB+n5jGC4mR2oPhYRJ15Nf8E/Z2RVKWCxpK6aoPALvoG4+QOX+TXDsz+IJ GdxA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=oktnYNpq/GJnHfjRgxXzx73NX4P9QXLvYLPpcKUpLLY=; b=QtOIfh2GTVswx/tQU5uPEK68Cc84BBFjY8IufM9WUPOdltX+JNLmsNz6ncxlTxbZMk 10QGJBkzAbJ0CJ5EJSDt/Vpbg3UkEI+LoJA5E/pfGrVyyJ6LuNDoR/+9MV2RUyMZHYLg tgTabeqmemCNdncvWHF7NpjplirQqcydzjBdesszqrZTHBzWbIvMIRmuiM6MBMgI+AdF iW/fT6/rh8EbpN1eNjBaVk6F6Np5NwkbdOUbaS80FJ9ldCps9TxyoAHhp6bTHeo+GRTi FaI5W/0oX0JeETZ+PsEMcIFopFWKiOHJZs4sy7ZizAQxb4F6Hlqqn8v4pVhNsIQWc2XL +lDA== X-Gm-Message-State: AOAM532bBJD19YRCbhg6xjMMQ/Sp99MzELlrVshuWYH2w9Xbg9Q+OaZA ugrE6jzYlG8gnB4sN4CdxH/J+IGrEvRZ6iKUTMOw2HdGk/zHxQ== X-Google-Smtp-Source: ABdhPJwsQDbpzGMaopLFFTaYI1LuLryYpwOqqm7uapjBrONelfsh59SB0HqJ0nuB9A1hX4OQUDGaj43YUUrQ274aW0M= X-Received: by 2002:a2e:8e37:: with SMTP id r23mr11440577ljk.269.1618033749386; Fri, 09 Apr 2021 22:49:09 -0700 (PDT) MIME-Version: 1.0 From: Richi Dubey Date: Sat, 10 Apr 2021 11:18:32 +0530 Message-ID: Subject: About GSoC Project:Finishing MPLS implementation To: freebsd-hackers@freebsd.org X-Rspamd-Queue-Id: 4FHPFh4rftz3vCr X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20161025 header.b=UudVJOmc; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of richidubey@gmail.com designates 2a00:1450:4864:20::22c as permitted sender) smtp.mailfrom=richidubey@gmail.com X-Spamd-Result: default: False [-2.98 / 15.00]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; FREEMAIL_FROM(0.00)[gmail.com]; TO_DN_NONE(0.00)[]; URI_COUNT_ODD(1.00)[3]; DKIM_TRACE(0.00)[gmail.com:+]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; NEURAL_HAM_SHORT(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RBL_DBL_DONT_QUERY_IPS(0.00)[2a00:1450:4864:20::22c:from]; FREEMAIL_ENVFROM(0.00)[gmail.com]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ARC_NA(0.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-0.996]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20161025]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_HAM_LONG(-0.99)[-0.988]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[2a00:1450:4864:20::22c:from:127.0.2.255]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::22c:from]; RCVD_COUNT_TWO(0.00)[2]; RCVD_TLS_ALL(0.00)[]; MAILMAN_DEST(0.00)[freebsd-hackers] X-Mailman-Approved-At: Sat, 10 Apr 2021 09:14:16 +0000 Content-Type: text/plain; charset="UTF-8" X-Content-Filtered-By: Mailman/MimeDel 2.1.34 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Technical discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Apr 2021 05:49:13 -0000 Hi, There are no mentors listed for this project. Can someone please let me know if anyone is willing to be a mentor? Also, the link http://freebsd.mpls.in/ is not working, and when I read Ryan's work , it seems that the MPLS implementation is completed? If not, please let me know what remains. Thanks, Richi.