CVS commit: src/usr.sbin/vnconfig
Module Name:src Committed By: gdt Date: Sat Oct 21 23:42:03 UTC 2023 Modified Files: src/usr.sbin/vnconfig: vnconfig.8 Log Message: vnconfig.8: Don't mention ciphertext After all, this is not cgd(4). To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 src/usr.sbin/vnconfig/vnconfig.8 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.sbin/vnconfig
Module Name:src Committed By: gdt Date: Sat Oct 21 23:42:03 UTC 2023 Modified Files: src/usr.sbin/vnconfig: vnconfig.8 Log Message: vnconfig.8: Don't mention ciphertext After all, this is not cgd(4). To generate a diff of this commit: cvs rdiff -u -r1.49 -r1.50 src/usr.sbin/vnconfig/vnconfig.8 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.sbin/vnconfig/vnconfig.8 diff -u src/usr.sbin/vnconfig/vnconfig.8:1.49 src/usr.sbin/vnconfig/vnconfig.8:1.50 --- src/usr.sbin/vnconfig/vnconfig.8:1.49 Sat Oct 21 23:38:26 2023 +++ src/usr.sbin/vnconfig/vnconfig.8 Sat Oct 21 23:42:03 2023 @@ -1,4 +1,4 @@ -.\" $NetBSD: vnconfig.8,v 1.49 2023/10/21 23:38:26 gdt Exp $ +.\" $NetBSD: vnconfig.8,v 1.50 2023/10/21 23:42:03 gdt Exp $ .\" .\" Copyright (c) 1997 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -110,8 +110,8 @@ accesses separated in time, this is gene This bypassing behavior results in not updating the modification timestamp of the file. Also, file contents read through the filesystem (and thus the -filesystem's caching layer) may not be the correct values of -ciphertext, so caution is in order for backups. +filesystem's caching layer) may not be the contents written via this +interface, so caution is in order for backups. The .Fl i option may be useful if it is necessary to avoid inconsistent caching.
CVS commit: src/usr.sbin/vnconfig
Module Name:src Committed By: gdt Date: Sat Oct 21 23:38:26 UTC 2023 Modified Files: src/usr.sbin/vnconfig: vnconfig.8 Log Message: vnconfig: Improve recent caching edit to man page Explain that typical usage patterns don't run into consistency issues. Xref the -i flag. Leave ambiguous the nature of cache inconsistency, because I don't undersstand it and it's best not to make it a defined interface anyway. I am unclear on whether a buffer cache read before a vnd session might persist after a vnd is configured/used/unconfigured, and whether a buffer cache write might be delayed until after a vnd configure/write. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/usr.sbin/vnconfig/vnconfig.8 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.sbin/vnconfig/vnconfig.8 diff -u src/usr.sbin/vnconfig/vnconfig.8:1.48 src/usr.sbin/vnconfig/vnconfig.8:1.49 --- src/usr.sbin/vnconfig/vnconfig.8:1.48 Fri Oct 20 13:04:21 2023 +++ src/usr.sbin/vnconfig/vnconfig.8 Sat Oct 21 23:38:26 2023 @@ -1,4 +1,4 @@ -.\" $NetBSD: vnconfig.8,v 1.48 2023/10/20 13:04:21 wiz Exp $ +.\" $NetBSD: vnconfig.8,v 1.49 2023/10/21 23:38:26 gdt Exp $ .\" .\" Copyright (c) 1997 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -100,12 +100,21 @@ The is a special file of raw partition or name of vnode disk like .Pa vnd0 . .Pp -By default, accesses to the file bypass normal mechanisms. -This behavior results in not updating the modification timestamp -of the file. -Also, file contents read through the filesystem may not be the -correct values of ciphertext, which can lead to corrupted backups of -the backing file. +By default, accesses to the file bypass normal mechanisms and thus +do not read from or fill the filesystem cache. +Because the typical approach is to access the file only via +.Xr vnd 4 , +or at least to have regular accesses and +.Xr vnd 4 +accesses separated in time, this is generally not problematic. +This bypassing behavior results in not updating the modification +timestamp of the file. +Also, file contents read through the filesystem (and thus the +filesystem's caching layer) may not be the correct values of +ciphertext, so caution is in order for backups. +The +.Fl i +option may be useful if it is necessary to avoid inconsistent caching. .Pp Options indicate an action to be performed: .Bl -tag -width indent
CVS commit: src/usr.sbin/vnconfig
Module Name:src Committed By: gdt Date: Sat Oct 21 23:38:26 UTC 2023 Modified Files: src/usr.sbin/vnconfig: vnconfig.8 Log Message: vnconfig: Improve recent caching edit to man page Explain that typical usage patterns don't run into consistency issues. Xref the -i flag. Leave ambiguous the nature of cache inconsistency, because I don't undersstand it and it's best not to make it a defined interface anyway. I am unclear on whether a buffer cache read before a vnd session might persist after a vnd is configured/used/unconfigured, and whether a buffer cache write might be delayed until after a vnd configure/write. To generate a diff of this commit: cvs rdiff -u -r1.48 -r1.49 src/usr.sbin/vnconfig/vnconfig.8 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.sbin/vnconfig
Module Name:src Committed By: wiz Date: Fri Oct 20 13:04:21 UTC 2023 Modified Files: src/usr.sbin/vnconfig: vnconfig.8 Log Message: New sentence, new line. Bump date for previous. To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/usr.sbin/vnconfig/vnconfig.8 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
CVS commit: src/usr.sbin/vnconfig
Module Name:src Committed By: wiz Date: Fri Oct 20 13:04:21 UTC 2023 Modified Files: src/usr.sbin/vnconfig: vnconfig.8 Log Message: New sentence, new line. Bump date for previous. To generate a diff of this commit: cvs rdiff -u -r1.47 -r1.48 src/usr.sbin/vnconfig/vnconfig.8 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.sbin/vnconfig/vnconfig.8 diff -u src/usr.sbin/vnconfig/vnconfig.8:1.47 src/usr.sbin/vnconfig/vnconfig.8:1.48 --- src/usr.sbin/vnconfig/vnconfig.8:1.47 Fri Oct 20 12:45:17 2023 +++ src/usr.sbin/vnconfig/vnconfig.8 Fri Oct 20 13:04:21 2023 @@ -1,4 +1,4 @@ -.\" $NetBSD: vnconfig.8,v 1.47 2023/10/20 12:45:17 gdt Exp $ +.\" $NetBSD: vnconfig.8,v 1.48 2023/10/20 13:04:21 wiz Exp $ .\" .\" Copyright (c) 1997 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -61,7 +61,7 @@ .\" .\" @(#)vnconfig.8 8.1 (Berkeley) 6/5/93 .\" -.Dd January 10, 2021 +.Dd October 20, 2023 .Dt VNDCONFIG 8 .Os .Sh NAME @@ -100,9 +100,10 @@ The is a special file of raw partition or name of vnode disk like .Pa vnd0 . .Pp -By default, accesses to the file bypass normal mechanisms. This -behavior results in not updating the modification timestamp of the -file. Also, file contents read through the filesystem may not be the +By default, accesses to the file bypass normal mechanisms. +This behavior results in not updating the modification timestamp +of the file. +Also, file contents read through the filesystem may not be the correct values of ciphertext, which can lead to corrupted backups of the backing file. .Pp
CVS commit: src/usr.sbin/vnconfig
Module Name:src Committed By: gdt Date: Fri Oct 20 12:45:17 UTC 2023 Modified Files: src/usr.sbin/vnconfig: vnconfig.8 Log Message: vnconfig: Add caution to man page about cache bypassing behavior To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47 src/usr.sbin/vnconfig/vnconfig.8 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files. Modified files: Index: src/usr.sbin/vnconfig/vnconfig.8 diff -u src/usr.sbin/vnconfig/vnconfig.8:1.46 src/usr.sbin/vnconfig/vnconfig.8:1.47 --- src/usr.sbin/vnconfig/vnconfig.8:1.46 Sat Jan 9 23:54:26 2021 +++ src/usr.sbin/vnconfig/vnconfig.8 Fri Oct 20 12:45:17 2023 @@ -1,4 +1,4 @@ -.\" $NetBSD: vnconfig.8,v 1.46 2021/01/09 23:54:26 wiz Exp $ +.\" $NetBSD: vnconfig.8,v 1.47 2023/10/20 12:45:17 gdt Exp $ .\" .\" Copyright (c) 1997 The NetBSD Foundation, Inc. .\" All rights reserved. @@ -100,6 +100,12 @@ The is a special file of raw partition or name of vnode disk like .Pa vnd0 . .Pp +By default, accesses to the file bypass normal mechanisms. This +behavior results in not updating the modification timestamp of the +file. Also, file contents read through the filesystem may not be the +correct values of ciphertext, which can lead to corrupted backups of +the backing file. +.Pp Options indicate an action to be performed: .Bl -tag -width indent .It Fl c
CVS commit: src/usr.sbin/vnconfig
Module Name:src Committed By: gdt Date: Fri Oct 20 12:45:17 UTC 2023 Modified Files: src/usr.sbin/vnconfig: vnconfig.8 Log Message: vnconfig: Add caution to man page about cache bypassing behavior To generate a diff of this commit: cvs rdiff -u -r1.46 -r1.47 src/usr.sbin/vnconfig/vnconfig.8 Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Re: CVS commit: src/usr.sbin/vnconfig
Hi, On Sun, 09 Jun 2013 09:25:41 -0400, Christos Zoulas wrote: Module Name: src Committed By: christos Date: Sun Jun 9 13:25:41 UTC 2013 Modified Files: src/usr.sbin/vnconfig: vnconfig.c Log Message: Now that we grow vnd's dynamically we cannot depend on the kernel returning ENXIO when we exceed the number of configured vnds, so in the -l case, print info for all vnds we can find device nodes for in /dev. Is it worth pulling this to netbsd-6, together with sys/dev/vnd.c 1.225? Cheers, -- khorben
Re: CVS commit: src/usr.sbin/vnconfig
In article kp300r$umj$1...@ger.gmane.org, Pierre Pronchery khor...@defora.org wrote: Hi, On Sun, 09 Jun 2013 09:25:41 -0400, Christos Zoulas wrote: Module Name: src Committed By:christos Date:Sun Jun 9 13:25:41 UTC 2013 Modified Files: src/usr.sbin/vnconfig: vnconfig.c Log Message: Now that we grow vnd's dynamically we cannot depend on the kernel returning ENXIO when we exceed the number of configured vnds, so in the -l case, print info for all vnds we can find device nodes for in /dev. Is it worth pulling this to netbsd-6, together with sys/dev/vnd.c 1.225? 6- does not have dynamically allocated vnds. christos