svn commit: r368684 - head/stand/libsa/zfs

2020-12-15 Thread Toomas Soome
Author: tsoome Date: Tue Dec 15 22:37:03 2020 New Revision: 368684 URL: https://svnweb.freebsd.org/changeset/base/368684 Log: loader: allow loader to accept zfs feature com.delphix:bookmark_written We do not need to actually read bookmarks, just whitelist this feature. Reported by:

svn commit: r368677 - head/stand/libsa/zfs

2020-12-15 Thread Toomas Soome
Author: tsoome Date: Tue Dec 15 21:48:35 2020 New Revision: 368677 URL: https://svnweb.freebsd.org/changeset/base/368677 Log: loader: allow loader to accept zfs feature com.datto:bookmark_v2 We do not need to actually read bookmarks, just whitelist this feature Reported by: jpaetzel

Re: svn commit: r368575 - head/stand/lua

2020-12-12 Thread Toomas Soome via svn-src-all
Yes, with pager or it is a bit useless. Sent from my iPhone > On 12. Dec 2020, at 16:10, Kyle Evans wrote: > > On Sat, Dec 12, 2020 at 1:35 AM Toomas Soome wrote: >> >> How about ’show-module-options’? >> >> rgds, >> toomas >> > > I m

Re: svn commit: r368575 - head/stand/lua

2020-12-11 Thread Toomas Soome via svn-src-all
How about ’show-module-options’? rgds, toomas > On 12. Dec 2020, at 07:57, Kyle Evans wrote: > > Author: kevans > Date: Sat Dec 12 05:57:42 2020 > New Revision: 368575 > URL: https://svnweb.freebsd.org/changeset/base/368575 > > Log: > lualoader: provide module-manipulation commands > >

svn commit: r368410 - head/stand/libsa/zfs

2020-12-07 Thread Toomas Soome
Author: tsoome Date: Mon Dec 7 11:25:18 2020 New Revision: 368410 URL: https://svnweb.freebsd.org/changeset/base/368410 Log: loader: xdr_array is missing count The integer arrays are encoded in nvlist as counted array , loader xdr_array() is missing the count. This will affect the pool

svn commit: r368274 - head/share/vt/fonts

2020-12-02 Thread Toomas Soome
Author: tsoome Date: Wed Dec 2 09:42:02 2020 New Revision: 368274 URL: https://svnweb.freebsd.org/changeset/base/368274 Log: vt/fonts: fix typo add missing 'is'. Reported by: bcr Modified: head/share/vt/fonts/INDEX.fonts Modified: head/share/vt/fonts/INDEX.fonts

svn commit: r368266 - head/stand/ficl/softwords

2020-12-01 Thread Toomas Soome
Author: tsoome Date: Tue Dec 1 23:07:05 2020 New Revision: 368266 URL: https://svnweb.freebsd.org/changeset/base/368266 Log: ficl: make dump a bit friendlier would be nice to have dump to output hex and ascii. Modified: head/stand/ficl/softwords/softcore.fr Modified:

svn commit: r368261 - head/stand/ficl

2020-12-01 Thread Toomas Soome
Author: tsoome Date: Tue Dec 1 22:28:02 2020 New Revision: 368261 URL: https://svnweb.freebsd.org/changeset/base/368261 Log: ficl: instead of pad, emit can use local variable Pad in forth is used as "scratchpad" and internal implementations should not use it. Ficl does not really follow

svn commit: r368184 - in head/sys: dev/vt kern sys

2020-11-30 Thread Toomas Soome
Author: tsoome Date: Mon Nov 30 11:45:47 2020 New Revision: 368184 URL: https://svnweb.freebsd.org/changeset/base/368184 Log: vt: if loader did pass the font via metadata, use it The built in 8x16 font may be way too small with large framebuffer resolutions, to improve readability, use

svn commit: r368169 - head/sys/dev/hyperv/vmbus

2020-11-30 Thread Toomas Soome
Author: tsoome Date: Mon Nov 30 08:31:41 2020 New Revision: 368169 URL: https://svnweb.freebsd.org/changeset/base/368169 Log: fix vmbus_fb_mmio_res after r368168 mixed efifb versus vbefb struct use did slip in by mistake. Modified: head/sys/dev/hyperv/vmbus/vmbus.c Modified:

svn commit: r368168 - in head/sys: amd64/conf conf dev/hyperv/vmbus dev/vt/hw/vbefb i386/conf kern x86/include

2020-11-30 Thread Toomas Soome
Author: tsoome Date: Mon Nov 30 08:22:40 2020 New Revision: 368168 URL: https://svnweb.freebsd.org/changeset/base/368168 Log: Add VT driver for VBE framebuffer device Implement vt_vbefb to support Vesa Bios Extensions (VBE) framebuffer with VT. vt_vbefb is built based on vt_efifb and is

svn commit: r367710 - head/stand/i386/zfsboot

2020-11-15 Thread Toomas Soome
Author: tsoome Date: Sun Nov 15 14:04:27 2020 New Revision: 367710 URL: https://svnweb.freebsd.org/changeset/base/367710 Log: zfsboot: add prototype for main() Some compilers are complaining about missing prototype. PR: 251150 Reported by: markiyan.kush...@gmail.com

svn commit: r367674 - head/stand/common

2020-11-14 Thread Toomas Soome
Author: tsoome Date: Sat Nov 14 10:56:40 2020 New Revision: 367674 URL: https://svnweb.freebsd.org/changeset/base/367674 Log: loader: cstyle cleanup of console.c cstyle cleanup only, no functional changes intended. Modified: head/stand/common/console.c Modified:

svn commit: r367480 - head/stand/common

2020-11-08 Thread Toomas Soome
Author: tsoome Date: Sun Nov 8 09:49:51 2020 New Revision: 367480 URL: https://svnweb.freebsd.org/changeset/base/367480 Log: loader: cstyle cleanup of bootstrap.h did miss a bit correct small issues - misplaced comment and typos. Modified: head/stand/common/bootstrap.h Modified:

svn commit: r367479 - head/stand/common

2020-11-08 Thread Toomas Soome
Author: tsoome Date: Sun Nov 8 09:35:41 2020 New Revision: 367479 URL: https://svnweb.freebsd.org/changeset/base/367479 Log: loader: cstyle cleanup of bootstrap.h No functional changes intended. Modified: head/stand/common/bootstrap.h Modified: head/stand/common/bootstrap.h

svn commit: r367431 - head/sys/dev/vt/hw/efifb

2020-11-06 Thread Toomas Soome
Author: tsoome Date: Fri Nov 6 21:27:54 2020 New Revision: 367431 URL: https://svnweb.freebsd.org/changeset/base/367431 Log: efifb: vt_generate_cons_palette() takes max color, not mask vt_generate_cons_palette() does take max values of RGB component colours, not mask. Also we need to

svn commit: r366951 - head/stand/libsa/zfs

2020-10-22 Thread Toomas Soome
Author: tsoome Date: Thu Oct 22 20:02:02 2020 New Revision: 366951 URL: https://svnweb.freebsd.org/changeset/base/366951 Log: loader: revert r342161 and r342151 We are using asize property from pool label and we do not depend on partition data to find last two pool labels and to validate

svn commit: r366631 - head/stand/i386/common

2020-10-12 Thread Toomas Soome
Author: tsoome Date: Mon Oct 12 09:34:50 2020 New Revision: 366631 URL: https://svnweb.freebsd.org/changeset/base/366631 Log: loader: edd_device_path_v3 is too small The EDD v3[1], see table 13, page 33, does define device path as double qword, that is, 16 bytes, we have only qword.

Re: svn commit: r366626 - head/sbin/reboot

2020-10-11 Thread Toomas Soome via svn-src-all
> On 11. Oct 2020, at 16:01, Alexey Dokuchaev wrote: > > On Sun, Oct 11, 2020 at 03:20:16PM +0300, Toomas Soome wrote: >> Please note, the remove is done by rc script during the boot. > > But not by the loader(8) as the page used to claim. It confused me how to > av

Re: svn commit: r366626 - head/sbin/reboot

2020-10-11 Thread Toomas Soome via svn-src-all
Please note, the remove is done by rc script during the boot. Also nextboot.conf not generic configuration file (such as loader.conf or loader.conf.local), but the implementation specific file, part of special feature. That is, one should not assume the presence of nextboot.conf file, make

svn commit: r366087 - in head/stand: efi/loader i386/loader i386/zfsboot

2020-09-23 Thread Toomas Soome
Author: tsoome Date: Wed Sep 23 19:15:22 2020 New Revision: 366087 URL: https://svnweb.freebsd.org/changeset/base/366087 Log: loader: fix non-zfs build We can not include zfs headers while building without zfs. Reported by: Oscar Holmlund Modified: head/stand/efi/loader/main.c

svn commit: r366066 - in head/stand: efi/libefi libsa/zfs

2020-09-23 Thread Toomas Soome
Author: tsoome Date: Wed Sep 23 08:22:14 2020 New Revision: 366066 URL: https://svnweb.freebsd.org/changeset/base/366066 Log: loader: zfs_probe_dev should pick first matching zfs pool During devswitch probe, we pick boot pool based on boot disk, if the boot disk happens to have multiple

Re: svn commit: r365643 - head/bin/cp

2020-09-22 Thread Toomas Soome via svn-src-all
> On 23. Sep 2020, at 00:50, Warner Losh wrote: > > I think it's a great leap sideways, but I've done cp /dev/null foo to clear > it out for 35 years now... It's why it feels like a workaround. > > Though it is a legit optimization, no matter the feelings. As for clearer, > I'm less sure

svn commit: r365938 - in head: . cddl/lib cddl/lib/libzfsbootenv cddl/lib/libzpool lib/libbe libexec/rc libexec/rc/rc.d rescue/rescue sbin/bectl sbin/reboot sbin/zfsbootcfg share/man/man5 share/mk ...

2020-09-21 Thread Toomas Soome
Author: tsoome Date: Mon Sep 21 09:01:10 2020 New Revision: 365938 URL: https://svnweb.freebsd.org/changeset/base/365938 Log: loader: zfs should support bootonce an nextboot bootonce feature is temporary, one time boot, activated by "bectl activate -t BE", "bectl activate -T BE" will

Re: svn commit: r365249 - head

2020-09-02 Thread Toomas Soome via svn-src-all
> On 2. Sep 2020, at 18:53, Ryan Moeller wrote: > > > On 9/2/20 11:43 AM, Andriy Gapon wrote: >> On 02/09/2020 18:23, Ryan Moeller wrote: >>> On 9/2/20 10:28 AM, Warner Losh wrote: Author: imp Date: Wed Sep 2 14:28:54 2020 New Revision: 365249 URL:

svn commit: r364827 - head/stand/libsa/zfs

2020-08-26 Thread Toomas Soome
Author: tsoome Date: Wed Aug 26 17:52:32 2020 New Revision: 364827 URL: https://svnweb.freebsd.org/changeset/base/364827 Log: libsa: only skein_block.c is using SKEIN_LOOP Only use SKEIN_LOOP while compiling skein_block.c Modified: head/stand/libsa/zfs/Makefile.inc Modified:

svn commit: r364818 - head/usr.sbin/efibootmgr

2020-08-26 Thread Toomas Soome
Author: tsoome Date: Wed Aug 26 14:02:38 2020 New Revision: 364818 URL: https://svnweb.freebsd.org/changeset/base/364818 Log: efibootmgr: wrong check for opts.order opts.order && !(opts.order) does not really make sense. Reported by: swildner Modified:

svn commit: r364806 - in head/sys/contrib/openzfs: include/os/freebsd/spl/sys module/os/freebsd/spl

2020-08-26 Thread Toomas Soome
Author: tsoome Date: Wed Aug 26 07:29:17 2020 New Revision: 364806 URL: https://svnweb.freebsd.org/changeset/base/364806 Log: remove pragma ident lines The #pragma ident is historical relict and not needed any more, this pragma is actually unknown for common compilers and is only causing

svn commit: r364805 - head/sys/cddl/contrib/opensolaris/uts/common/fs

2020-08-26 Thread Toomas Soome
Author: tsoome Date: Wed Aug 26 07:00:07 2020 New Revision: 364805 URL: https://svnweb.freebsd.org/changeset/base/364805 Log: remove left over empty directory 364746 did leave empty directory around. Deleted: head/sys/cddl/contrib/opensolaris/uts/common/fs/

svn commit: r364408 - head/stand/libsa

2020-08-19 Thread Toomas Soome
Author: tsoome Date: Wed Aug 19 20:41:22 2020 New Revision: 364408 URL: https://svnweb.freebsd.org/changeset/base/364408 Log: libsa: remove leftover whitespace Tiny cleanup, no functional changes. Modified: head/stand/libsa/environment.c Modified: head/stand/libsa/environment.c

svn commit: r364398 - head/stand/libsa

2020-08-19 Thread Toomas Soome
Author: tsoome Date: Wed Aug 19 15:27:09 2020 New Revision: 364398 URL: https://svnweb.freebsd.org/changeset/base/364398 Log: libsa: make env_discard() public Allow env_discard() to be used outside environment.c Modified: head/stand/libsa/environment.c head/stand/libsa/stand.h

svn commit: r364397 - head/stand/libsa

2020-08-19 Thread Toomas Soome
Author: tsoome Date: Wed Aug 19 15:20:33 2020 New Revision: 364397 URL: https://svnweb.freebsd.org/changeset/base/364397 Log: libsa: cstyle cleanup for environment.c No functional changes. Modified: head/stand/libsa/environment.c Modified: head/stand/libsa/environment.c

svn commit: r363911 - in head: cddl/contrib/opensolaris/cmd/zinject cddl/contrib/opensolaris/lib/libzfs/common cddl/contrib/opensolaris/lib/libzfs_core/common sys/cddl/contrib/opensolaris/uts/commo...

2020-08-05 Thread Toomas Soome
Author: tsoome Date: Wed Aug 5 14:32:20 2020 New Revision: 363911 URL: https://svnweb.freebsd.org/changeset/base/363911 Log: MFOpenZFS: Add support for boot environment data to be stored in the label We are building new bootonce mechanism (previously zfs bootnext) and it is based on

svn commit: r363910 - head/sys/cddl/contrib/opensolaris/uts/common/fs/zfs

2020-08-05 Thread Toomas Soome
Author: tsoome Date: Wed Aug 5 14:08:44 2020 New Revision: 363910 URL: https://svnweb.freebsd.org/changeset/base/363910 Log: zfs_keys_nextboot array is missing ZPOOL_CONFIG_POOL_GUID and ZPOOL_CONFIG_GUID As we do check the incomint nvlist, we either need to list all possible keys or

svn commit: r363558 - stable/11/usr.sbin/efibootmgr

2020-07-26 Thread Toomas Soome
Author: tsoome Date: Sun Jul 26 11:01:38 2020 New Revision: 363558 URL: https://svnweb.freebsd.org/changeset/base/363558 Log: MFC 363241: efibootmgr: typo in long option name del-timout should be del-timeout Reported by: mjg Modified:

svn commit: r363557 - stable/12/usr.sbin/efibootmgr

2020-07-26 Thread Toomas Soome
Author: tsoome Date: Sun Jul 26 10:59:32 2020 New Revision: 363557 URL: https://svnweb.freebsd.org/changeset/base/363557 Log: MFC 363241: efibootmgr: typo in long option name del-timout should be del-timeout Reported by: mjg Modified:

svn commit: r363318 - head/stand/i386/loader

2020-07-19 Thread Toomas Soome
Author: tsoome Date: Sun Jul 19 06:59:09 2020 New Revision: 363318 URL: https://svnweb.freebsd.org/changeset/base/363318 Log: loader: cstyle cleanup No functional changes intended. Sponsored by: Netflix, Klara Inc. Modified: head/stand/i386/loader/main.c Modified:

svn commit: r363241 - head/usr.sbin/efibootmgr

2020-07-16 Thread Toomas Soome
Author: tsoome Date: Thu Jul 16 10:20:35 2020 New Revision: 363241 URL: https://svnweb.freebsd.org/changeset/base/363241 Log: efibootmgr: typo in long option name del-timout should be del-timeout Reported by: mjg MFC after:1 week Modified:

svn commit: r363090 - in head/stand: i386/gptboot libsa/geli

2020-07-11 Thread Toomas Soome
Author: tsoome Date: Sat Jul 11 06:51:42 2020 New Revision: 363090 URL: https://svnweb.freebsd.org/changeset/base/363090 Log: loader: implement GELI writes Bug: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=247482 This patch is based on initial work from allanjude. PR:

svn commit: r363042 - head/stand/libsa/zfs

2020-07-09 Thread Toomas Soome
Author: tsoome Date: Thu Jul 9 13:19:00 2020 New Revision: 363042 URL: https://svnweb.freebsd.org/changeset/base/363042 Log: loader: setting vdev size based on label asize is not working Because we need to read asize from vdev_tree. We also need to consider different vdev type

svn commit: r362989 - head/stand/libsa/geli

2020-07-07 Thread Toomas Soome
Author: tsoome Date: Tue Jul 7 12:24:40 2020 New Revision: 362989 URL: https://svnweb.freebsd.org/changeset/base/362989 Log: loader: geli_dev_ioctl does return huge mediasize The DIOCGMEDIASIZE is calculated md->md_sectorsize * md->md_provsize, and for boot disk, the md_sectorsize is

svn commit: r362884 - head/stand/libsa/zfs

2020-07-02 Thread Toomas Soome
Author: tsoome Date: Thu Jul 2 07:15:48 2020 New Revision: 362884 URL: https://svnweb.freebsd.org/changeset/base/362884 Log: loader: zfs reader does not need BOOT2 bits After switching zfsloader to use full libsa, we do not need spa_get_primary() and spa_get_primary_vdev() any more.

svn commit: r362883 - head/stand/libsa/zfs

2020-07-02 Thread Toomas Soome
Author: tsoome Date: Thu Jul 2 07:03:15 2020 New Revision: 362883 URL: https://svnweb.freebsd.org/changeset/base/362883 Log: loader: potential memory leak and check return values Need to free nvlist before return from vdev_from_nvlist(). Sponsored by: Netflix, Klara Inc. Modified:

svn commit: r362812 - head/stand/efi/boot1

2020-06-30 Thread Toomas Soome
Author: tsoome Date: Tue Jun 30 21:48:58 2020 New Revision: 362812 URL: https://svnweb.freebsd.org/changeset/base/362812 Log: boot1.efi: use malloc family from libsa The zfs reader development did reach to the point where linking boot1, we will get errors about duplicate symbols Malloc,

svn commit: r362663 - head/stand/libsa/zfs

2020-06-26 Thread Toomas Soome
Author: tsoome Date: Fri Jun 26 21:21:35 2020 New Revision: 362663 URL: https://svnweb.freebsd.org/changeset/base/362663 Log: loader: can not read zfs pool with slog removed The vdev_init() does check for "known" vdev types, the [log] device removal will create "hole" device, but

svn commit: r362531 - in head: cddl/contrib/opensolaris/cmd/zfs cddl/contrib/opensolaris/lib/libzfs/common cddl/contrib/opensolaris/lib/libzfs_core/common sys/cddl/contrib/opensolaris/uts/common/fs...

2020-06-23 Thread Toomas Soome
Author: tsoome Date: Tue Jun 23 06:42:39 2020 New Revision: 362531 URL: https://svnweb.freebsd.org/changeset/base/362531 Log: MFOpenZFS: Add basic zfs ioc input nvpair validation We want newer versions of libzfs_core to run against an existing zfs kernel module (i.e. a deferred reboot or

svn commit: r362433 - head/stand/libofw

2020-06-20 Thread Toomas Soome
Author: tsoome Date: Sat Jun 20 08:22:57 2020 New Revision: 362433 URL: https://svnweb.freebsd.org/changeset/base/362433 Log: loader: libofw build is missing sys/list.h after r362431 Add another include path Modified: head/stand/libofw/Makefile Modified: head/stand/libofw/Makefile

svn commit: r362432 - head/stand/libofw

2020-06-20 Thread Toomas Soome
Author: tsoome Date: Sat Jun 20 07:46:43 2020 New Revision: 362432 URL: https://svnweb.freebsd.org/changeset/base/362432 Log: loader: fix libofw build after r362431 Modified: head/stand/libofw/Makefile Modified: head/stand/libofw/Makefile

svn commit: r362431 - in head: stand stand/efi/libefi stand/efi/loader stand/i386/gptzfsboot stand/i386/libi386 stand/i386/zfsboot stand/libsa/zfs stand/userboot/userboot sys/cddl/boot/zfs

2020-06-20 Thread Toomas Soome
Author: tsoome Date: Sat Jun 20 06:23:31 2020 New Revision: 362431 URL: https://svnweb.freebsd.org/changeset/base/362431 Log: loader: create single zfs nextboot implementation We should have nextboot feature implemented in libsa zfs code. To get there, I have created zfs_nextboot()

svn commit: r362265 - head/stand/libsa/zfs

2020-06-17 Thread Toomas Soome
Author: tsoome Date: Wed Jun 17 10:56:58 2020 New Revision: 362265 URL: https://svnweb.freebsd.org/changeset/base/362265 Log: loader: r362262 did miss the pathlen check While we are checking the "/dev/" prefix, we can skip the paths shorter than this prefix. Sponsored by: Netflix,

svn commit: r362262 - head/stand/libsa/zfs

2020-06-17 Thread Toomas Soome
Author: tsoome Date: Wed Jun 17 10:41:01 2020 New Revision: 362262 URL: https://svnweb.freebsd.org/changeset/base/362262 Log: loader: strings in nvlist are counted strings, not c-strings We need to fetch both string size and data, then handle the data. Reviewed by: allanjude

svn commit: r362259 - head/stand/i386/libi386

2020-06-17 Thread Toomas Soome
Author: tsoome Date: Wed Jun 17 08:08:57 2020 New Revision: 362259 URL: https://svnweb.freebsd.org/changeset/base/362259 Log: loader: vidc_init should also erase the screen Inject \e[J to erase the initial loader screen. We have two options, find where out cursor is and use BIOS scroll

svn commit: r362239 - head/stand/i386/common

2020-06-16 Thread Toomas Soome
Author: tsoome Date: Tue Jun 16 20:35:00 2020 New Revision: 362239 URL: https://svnweb.freebsd.org/changeset/base/362239 Log: boot2: need to expand tab output and mask getchar The BIOS ouput char function does not expand tab. Mask getchar with 0xFF. Sponsored by: Netflix, Klara Inc.

svn commit: r362218 - head/stand/common

2020-06-16 Thread Toomas Soome
Author: tsoome Date: Tue Jun 16 07:30:34 2020 New Revision: 362218 URL: https://svnweb.freebsd.org/changeset/base/362218 Log: loader: zfs_cmd.c does not really compile without libzfs.h Having libzfs.h wrapped in LOADER_ZFS_SUPPORT check does not really make sense, because we do need

svn commit: r362217 - head/stand/common

2020-06-16 Thread Toomas Soome
Author: tsoome Date: Tue Jun 16 07:05:03 2020 New Revision: 362217 URL: https://svnweb.freebsd.org/changeset/base/362217 Log: loader: variable i is unused without MBR/GPT support built in Because i is only used as index in for loop, declare it in for statement. Sponsored by: Netflix,

svn commit: r362184 - head/stand/i386/zfsboot

2020-06-14 Thread Toomas Soome
Author: tsoome Date: Sun Jun 14 20:57:24 2020 New Revision: 362184 URL: https://svnweb.freebsd.org/changeset/base/362184 Log: zfsboot: cstyle cleanup No functional changes intended. Sponsored by: Netflix, Klara Inc. Modified: head/stand/i386/zfsboot/zfsboot.c Modified:

svn commit: r362174 - head/stand/efi/loader

2020-06-14 Thread Toomas Soome
Author: tsoome Date: Sun Jun 14 10:13:40 2020 New Revision: 362174 URL: https://svnweb.freebsd.org/changeset/base/362174 Log: loader.efi: update console after gfx mode change The gfx mode change should be coordinated with console setup. Modified: head/stand/efi/loader/framebuffer.c

svn commit: r362172 - in head: share/vt/fonts sys/dev/vt sys/dev/vt/font sys/sys tools/build tools/tools/vt/mkkfont usr.bin/vtfontcvt usr.sbin/vidcontrol

2020-06-14 Thread Toomas Soome
Author: tsoome Date: Sun Jun 14 06:58:58 2020 New Revision: 362172 URL: https://svnweb.freebsd.org/changeset/base/362172 Log: Move font related data structured to sys/font.c and update vtfontcvt Prepare support to be able to handle font data in loader, consolidate data structures to

svn commit: r361842 - head/sbin/zfsbootcfg

2020-06-05 Thread Toomas Soome
Author: tsoome Date: Fri Jun 5 18:18:27 2020 New Revision: 361842 URL: https://svnweb.freebsd.org/changeset/base/361842 Log: zfsbootcfg: use vfs.root.mountfrom and update nextboot on every vdev vfs.zfs.boot.primary_pool is only set on BIOS boot, use vfs.root.mountfrom instead and update

svn commit: r361266 - head/sys/cddl/contrib/opensolaris/common/lz4

2020-05-19 Thread Toomas Soome
Author: tsoome Date: Tue May 19 19:53:12 2020 New Revision: 361266 URL: https://svnweb.freebsd.org/changeset/base/361266 Log: lz4 hash table does not start zeroed illumos issue: https://www.illumos.org/issues/12757 Submitted by: andyf Modified:

svn commit: r360891 - stable/11/stand/libsa/zfs

2020-05-11 Thread Toomas Soome
Author: tsoome Date: Mon May 11 07:01:10 2020 New Revision: 360891 URL: https://svnweb.freebsd.org/changeset/base/360891 Log: MFC r360836: loader: vdev_read() can corrupt memory When reading less than sector size but from sector boundary, the vdev_read() will read full sector into

svn commit: r360890 - stable/12/stand/libsa/zfs

2020-05-11 Thread Toomas Soome
Author: tsoome Date: Mon May 11 06:59:01 2020 New Revision: 360890 URL: https://svnweb.freebsd.org/changeset/base/360890 Log: MFC r360836: loader: vdev_read() can corrupt memory When reading less than sector size but from sector boundary, the vdev_read() will read full sector into

Re: svn commit: r360836 - head/stand/libsa/zfs

2020-05-09 Thread Toomas Soome via svn-src-all
> On 9. May 2020, at 11:23, Ronald Klop wrote: > > On Sat, 09 May 2020 09:25:29 +0200, Toomas Soome <mailto:tso...@me.com>> wrote: > >> >> >>> On 9. May 2020, at 09:57, Ronald Klop wrote: >>> >>> Hi Toomas, >>>

Re: svn commit: r360836 - head/stand/libsa/zfs

2020-05-09 Thread Toomas Soome via svn-src-all
t with BIOS, only with UEFI). That issue was reported 2010 agains 9.0? is it still the case? rgds, toomas > > > On Sat, 09 May 2020 08:25:21 +0200, Toomas Soome wrote: > >> Author: tsoome >> Date: Sat May 9 06:25:20 2020 >> New Revision: 360836 >> U

svn commit: r360836 - head/stand/libsa/zfs

2020-05-09 Thread Toomas Soome
Author: tsoome Date: Sat May 9 06:25:20 2020 New Revision: 360836 URL: https://svnweb.freebsd.org/changeset/base/360836 Log: loader: vdev_read() can corrupt memory When reading less than sector size but from sector boundary, the vdev_read() will read full sector into the provided buffer

svn commit: r359458 - head/share/vt/fonts

2020-03-30 Thread Toomas Soome
Author: tsoome Date: Mon Mar 30 20:07:25 2020 New Revision: 359458 URL: https://svnweb.freebsd.org/changeset/base/359458 Log: gallant: pound sign (0xa3) is a bit broken. Add extra glyphs. I did add some more glyphs to provide box drawing and set of additional glyphs to provide better

Re: svn commit: r358989 - in head/stand/efi: libefi loader loader/arch/arm loader/arch/arm64

2020-03-29 Thread Toomas Soome via svn-src-all
> On 29. Mar 2020, at 09:40, Ruslan Garipov wrote: > >>> >> >> That definitely can be the case. If you do not set any custom values, >> missing tem.* variables would confirm that. >> >> Now, there is still an question, why in your system that allocation does >> fail? > Is there a way I

svn commit: r359421 - head/stand/libsa

2020-03-29 Thread Toomas Soome
Author: tsoome Date: Sun Mar 29 06:48:59 2020 New Revision: 359421 URL: https://svnweb.freebsd.org/changeset/base/359421 Log: loader: use #elif defined() in stand.h Small cleanup. Reported by: imp Modified: head/stand/libsa/stand.h Modified: head/stand/libsa/stand.h

svn commit: r359411 - head/stand/efi/libefi

2020-03-28 Thread Toomas Soome
Author: tsoome Date: Sat Mar 28 22:37:50 2020 New Revision: 359411 URL: https://svnweb.freebsd.org/changeset/base/359411 Log: loader.efi: restore the init and fix the color setup The efi console init is avoided since conin setup was moved to probe. In case the console is re-initialized,

Re: svn commit: r359408 - head/stand/libsa/zfs

2020-03-28 Thread Toomas Soome via svn-src-all
> On 29. Mar 2020, at 00:04, Oliver Pinter wrote: > > > > On Saturday, March 28, 2020, Toomas Soome <mailto:tso...@freebsd.org>> wrote: > Author: tsoome > Date: Sat Mar 28 21:50:27 2020 > New Revision: 359408 > URL: https://svnweb.freebsd

svn commit: r359409 - head/stand/libsa/zfs

2020-03-28 Thread Toomas Soome
Author: tsoome Date: Sat Mar 28 21:55:42 2020 New Revision: 359409 URL: https://svnweb.freebsd.org/changeset/base/359409 Log: loader: typo did slip into 359408 somehow r was lost from 'char'. Modified: head/stand/libsa/zfs/zfs.c Modified: head/stand/libsa/zfs/zfs.c

svn commit: r359408 - head/stand/libsa/zfs

2020-03-28 Thread Toomas Soome
Author: tsoome Date: Sat Mar 28 21:50:27 2020 New Revision: 359408 URL: https://svnweb.freebsd.org/changeset/base/359408 Log: loader: strdup name strings from dataset walker The removal of zfs scratch buffer did miss the fact the dataset lookup was picking up the names from zap list.

svn commit: r359407 - head/stand/libsa

2020-03-28 Thread Toomas Soome
Author: tsoome Date: Sat Mar 28 21:47:44 2020 New Revision: 359407 URL: https://svnweb.freebsd.org/changeset/base/359407 Log: loader: add knob to build with user malloc This option is intended to aid development, to allow building with user malloc. The use case would be to build

Re: svn commit: r358989 - in head/stand/efi: libefi loader loader/arch/arm loader/arch/arm64

2020-03-28 Thread Toomas Soome via svn-src-all
> On 28. Mar 2020, at 08:07, Alexey Dokuchaev wrote: > > On Sat, Mar 14, 2020 at 06:36:03AM +0000, Toomas Soome wrote: >> New Revision: 358989 >> URL: https://svnweb.freebsd.org/changeset/base/358989 >> >> Log: >> loader: add comconsol

svn commit: r359372 - head/stand/efi/libefi

2020-03-27 Thread Toomas Soome
Author: tsoome Date: Fri Mar 27 18:01:01 2020 New Revision: 359372 URL: https://svnweb.freebsd.org/changeset/base/359372 Log: loader.efi: conout->QueryMode() can fail to return screen dimensions Some systems are reported to fail to report screen dimensions unless the screen mode is set

Re: svn commit: r358989 - in head/stand/efi: libefi loader loader/arch/arm loader/arch/arm64

2020-03-27 Thread Toomas Soome via svn-src-all
> On 27. Mar 2020, at 16:39, Ruslan Garipov wrote: > > On 3/14/2020 11:36 AM, Toomas Soome wrote: >> Author: tsoome >> Date: Sat Mar 14 06:36:03 2020 >> New Revision: 358989 >> URL: https://svnweb.freebsd.org/changeset/base/358989 >> >> Log: >

svn commit: r359153 - in head/stand: . common efi/gptboot i386/gptboot i386/gptzfsboot libsa uboot/lib

2020-03-19 Thread Toomas Soome
Author: tsoome Date: Thu Mar 19 21:05:11 2020 New Revision: 359153 URL: https://svnweb.freebsd.org/changeset/base/359153 Log: loader: remove libsa/crc32.c and use version from zlib we have crc32(const void *, size_t) in libsa. Unfortunately zlib has crc32(long, const unigned char *,

svn commit: r359147 - head/stand/common

2020-03-19 Thread Toomas Soome
Author: tsoome Date: Thu Mar 19 17:27:08 2020 New Revision: 359147 URL: https://svnweb.freebsd.org/changeset/base/359147 Log: loader: misaligned access of dos_partition structure armv7 crash due to misligned access of dos_partition dp_start field. Allocate and make copy of

svn commit: r359143 - in stable/12/stand: efi/loader i386/libi386

2020-03-19 Thread Toomas Soome
Author: tsoome Date: Thu Mar 19 16:51:57 2020 New Revision: 359143 URL: https://svnweb.freebsd.org/changeset/base/359143 Log: MFC r354240, r354252, r358906 libi386/comconsole.c updates: We don't support configuring serial PCI cards in EFI. Make this clearer in the source rather than

svn commit: r359099 - head/stand/efi/libefi

2020-03-18 Thread Toomas Soome
Author: tsoome Date: Wed Mar 18 22:21:42 2020 New Revision: 359099 URL: https://svnweb.freebsd.org/changeset/base/359099 Log: loader.efi: handle efi_cons_init() failure cases better if we fail to allocate buffer, set up the TERM_EMU and continue. On output, use TERM_EMU in case we did

svn commit: r358989 - in head/stand/efi: libefi loader loader/arch/arm loader/arch/arm64

2020-03-14 Thread Toomas Soome
Author: tsoome Date: Sat Mar 14 06:36:03 2020 New Revision: 358989 URL: https://svnweb.freebsd.org/changeset/base/358989 Log: loader: add comconsole implementation on top of SIO protocol Provide comconsole on top of SIO for arm platforms (x86 does use bios version). Added:

svn commit: r358906 - head/stand/i386/libi386

2020-03-12 Thread Toomas Soome
Author: tsoome Date: Thu Mar 12 06:45:08 2020 New Revision: 358906 URL: https://svnweb.freebsd.org/changeset/base/358906 Log: test if port does exist via using scratch register The SCR, scratch register was not present on the 8250 and 8250B UART, so we can use to test if we actually do

svn commit: r358815 - head/share/vt/fonts

2020-03-09 Thread Toomas Soome
Author: tsoome Date: Mon Mar 9 19:43:28 2020 New Revision: 358815 URL: https://svnweb.freebsd.org/changeset/base/358815 Log: gallant is 12x22, not 8x16 INDEX.fonts does list gallant with wrong size. Modified: head/share/vt/fonts/INDEX.fonts Modified: head/share/vt/fonts/INDEX.fonts

svn commit: r358632 - in head/stand/i386: gptboot isoboot

2020-03-04 Thread Toomas Soome
Author: tsoome Date: Wed Mar 4 18:38:09 2020 New Revision: 358632 URL: https://svnweb.freebsd.org/changeset/base/358632 Log: loader: crc32 is provided by libsa Seems like leftover from moving crc32.c to libsa. Modified: head/stand/i386/gptboot/Makefile

svn commit: r358343 - in head: stand/libsa/zfs sys/cddl/boot/zfs

2020-02-26 Thread Toomas Soome
Author: tsoome Date: Wed Feb 26 18:12:12 2020 New Revision: 358343 URL: https://svnweb.freebsd.org/changeset/base/358343 Log: loader: replace zfs_alloc/zfs_free with malloc/free Use common memory management. Modified: head/stand/libsa/zfs/zfs.c head/stand/libsa/zfs/zfsimpl.c

svn commit: r358260 - head/stand/common

2020-02-23 Thread Toomas Soome
Author: tsoome Date: Sun Feb 23 15:21:15 2020 New Revision: 358260 URL: https://svnweb.freebsd.org/changeset/base/358260 Log: loader: alloc_pread() should set errno if malloc fails We may want to find out why alloc_pread() failed. Modified: head/stand/common/misc.c Modified:

svn commit: r358163 - head/stand/efi/libefi

2020-02-20 Thread Toomas Soome
Author: tsoome Date: Thu Feb 20 09:02:59 2020 New Revision: 358163 URL: https://svnweb.freebsd.org/changeset/base/358163 Log: efi_register_handles() is missing NULL pointer check Add missing check of malloc() result. Modified: head/stand/efi/libefi/handles.c Modified:

svn commit: r358162 - head/stand/efi/libefi

2020-02-20 Thread Toomas Soome
Author: tsoome Date: Thu Feb 20 09:00:20 2020 New Revision: 358162 URL: https://svnweb.freebsd.org/changeset/base/358162 Log: insert_zfs() is missing NULL pointer check Add missing check of malloc() result. Modified: head/stand/efi/libefi/efizfs.c Modified:

svn commit: r358160 - head/stand/efi/libefi

2020-02-20 Thread Toomas Soome
Author: tsoome Date: Thu Feb 20 08:56:56 2020 New Revision: 358160 URL: https://svnweb.freebsd.org/changeset/base/358160 Log: efipart_inithandles() is missing NULL pointer check Add missing check of malloc() result. Modified: head/stand/efi/libefi/efipart.c Modified:

svn commit: r358159 - head/stand/efi/libefi

2020-02-20 Thread Toomas Soome
Author: tsoome Date: Thu Feb 20 08:55:18 2020 New Revision: 358159 URL: https://svnweb.freebsd.org/changeset/base/358159 Log: connect_controllers() is missing NULL pointer check Add missing check of malloc() result. Modified: head/stand/efi/libefi/efi_driver_utils.c Modified:

svn commit: r358158 - head/stand/efi/libefi

2020-02-20 Thread Toomas Soome
Author: tsoome Date: Thu Feb 20 08:53:04 2020 New Revision: 358158 URL: https://svnweb.freebsd.org/changeset/base/358158 Log: efihttp_fs_seek() is missing NULL pointer check Add missing check of malloc() result. Modified: head/stand/efi/libefi/efihttp.c Modified:

svn commit: r358157 - head/stand/efi/libefi

2020-02-20 Thread Toomas Soome
Author: tsoome Date: Thu Feb 20 08:48:34 2020 New Revision: 358157 URL: https://svnweb.freebsd.org/changeset/base/358157 Log: efinet_dev_init() is missing NULL pointer check Add missing check of malloc() result. Modified: head/stand/efi/libefi/efinet.c Modified:

svn commit: r357571 - head/stand/libsa/zfs

2020-02-05 Thread Toomas Soome
Author: tsoome Date: Wed Feb 5 13:08:24 2020 New Revision: 357571 URL: https://svnweb.freebsd.org/changeset/base/357571 Log: followup on r357497: clean obsolete comment and use shift instead of multiplication Based on illumos review feedback: leftover comment, but also have consistent

svn commit: r357569 - head/stand/i386/zfsboot

2020-02-05 Thread Toomas Soome
Author: tsoome Date: Wed Feb 5 11:02:00 2020 New Revision: 357569 URL: https://svnweb.freebsd.org/changeset/base/357569 Log: zfsboot: vdev_read_pad2 does allocate buffer with wrong size vdev_read_pad2() does read VDEV_PAD_SIZE of data, and will copy size bytes of it, hence, we need

svn commit: r357567 - head/stand/i386/zfsboot

2020-02-04 Thread Toomas Soome
Author: tsoome Date: Wed Feb 5 05:42:42 2020 New Revision: 357567 URL: https://svnweb.freebsd.org/changeset/base/357567 Log: vdev_read_pad2: freeing wrong pointer Shoud free previously allocated tmp buffer instead. Issue introduced in r357497. Reported by: rpokala Modified:

svn commit: r357497 - in head: stand/i386/zfsboot stand/libsa/zfs sys/cddl/boot/zfs

2020-02-03 Thread Toomas Soome
Author: tsoome Date: Tue Feb 4 07:37:55 2020 New Revision: 357497 URL: https://svnweb.freebsd.org/changeset/base/357497 Log: loader: rewrite zfs reader zap code to use malloc First step on removing zfs_alloc. Reviewed by: delphij Differential Revision:

svn commit: r357496 - stable/11/stand/i386/libi386

2020-02-03 Thread Toomas Soome
Author: tsoome Date: Tue Feb 4 07:18:49 2020 New Revision: 357496 URL: https://svnweb.freebsd.org/changeset/base/357496 Log: MFC r357442: loader: bc_add can not use any other probes than ah=0x4b CD boot is broken for some systems since bioscd and biosdisk merge. The issue is that we

svn commit: r357495 - stable/12/stand/i386/libi386

2020-02-03 Thread Toomas Soome
Author: tsoome Date: Tue Feb 4 07:15:33 2020 New Revision: 357495 URL: https://svnweb.freebsd.org/changeset/base/357495 Log: MFC r357442: loader: bc_add can not use any other probes than ah=0x4b CD boot is broken for some systems since bioscd and biosdisk merge. The issue is that we

svn commit: r357442 - head/stand/i386/libi386

2020-02-03 Thread Toomas Soome
Author: tsoome Date: Mon Feb 3 11:33:33 2020 New Revision: 357442 URL: https://svnweb.freebsd.org/changeset/base/357442 Log: loader: bc_add can not use any other probes than ah=0x4b CD boot is broken for some systems since bioscd and biosdisk merge. The issue is that we can not use

svn commit: r356700 - in head/stand: efi/libefi i386/libi386 libofw uboot/lib

2020-01-13 Thread Toomas Soome
Author: tsoome Date: Mon Jan 13 20:02:27 2020 New Revision: 356700 URL: https://svnweb.freebsd.org/changeset/base/356700 Log: Backout 356693. The libsa malloc does provide necessary alignment and memalign by 4 will reduce alignment for some platforms. Thanks for Ian for pointing this out.

  1   2   3   4   5   6   >