svn commit: r335125 - head/stand/libsa

2018-06-14 Thread Toomas Soome
Author: tsoome Date: Thu Jun 14 08:58:10 2018 New Revision: 335125 URL: https://svnweb.freebsd.org/changeset/base/335125 Log: libsa: cstyle cleanup for open/close/read/write sources Modified: head/stand/libsa/close.c head/stand/libsa/open.c head/stand/libsa/read.c head/stand/libsa/write

svn commit: r335126 - head/stand/libsa

2018-06-14 Thread Toomas Soome
Author: tsoome Date: Thu Jun 14 09:06:53 2018 New Revision: 335126 URL: https://svnweb.freebsd.org/changeset/base/335126 Log: libsa: f_rabuf could be NULL It is possible that we will not get RA buffer from open(), therefore we must validate RA. Modified: head/stand/libsa/read.c Modifi

svn commit: r335127 - head/stand/libsa

2018-06-14 Thread Toomas Soome
Author: tsoome Date: Thu Jun 14 09:10:34 2018 New Revision: 335127 URL: https://svnweb.freebsd.org/changeset/base/335127 Log: libsa: remobe unneeded check before free() free() is checking for NULL, remove duplicate check. Modified: head/stand/libsa/close.c Modified: head/stand/libsa/clo

svn commit: r335148 - head/stand/libsa

2018-06-14 Thread Toomas Soome
Author: tsoome Date: Thu Jun 14 16:11:50 2018 New Revision: 335148 URL: https://svnweb.freebsd.org/changeset/base/335148 Log: libsa: open() should use NULL instead of typecasted 0 Modified: head/stand/libsa/open.c Modified: head/stand/libsa/open.c

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

2017-12-01 Thread Toomas Soome
Author: tsoome Date: Fri Dec 1 06:37:12 2017 New Revision: 326421 URL: https://svnweb.freebsd.org/changeset/base/326421 Log: loader.efi: efipart should exclude iPXE stub block protocol iPXE does insert stub BLOCK IO protocol handle to rework other issues, this handle is not usable as it

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

2017-12-04 Thread Toomas Soome
Author: tsoome Date: Mon Dec 4 08:50:00 2017 New Revision: 326509 URL: https://svnweb.freebsd.org/changeset/base/326509 Log: loader.efi: add note about iPXE into the efipart.c Commant update. Modified: head/stand/efi/libefi/efipart.c Modified: head/stand/efi/libefi/efipart.c ==

svn commit: r326616 - head/stand/libsa

2017-12-05 Thread Toomas Soome
Author: tsoome Date: Wed Dec 6 06:49:53 2017 New Revision: 326616 URL: https://svnweb.freebsd.org/changeset/base/326616 Log: dhcp_try_rfc1048() is not used any more Remove unused function. Reviewed by: imp Differential Revision:https://reviews.freebsd.org/D13382 Modified:

svn commit: r326854 - in head/stand/efi: boot1 include libefi

2017-12-14 Thread Toomas Soome
Author: tsoome Date: Thu Dec 14 16:41:52 2017 New Revision: 326854 URL: https://svnweb.freebsd.org/changeset/base/326854 Log: libefi: make efichar.h more usable in stand code Use _STANDALONE for guard expression in efichar.[ch] and add efi_char typedef. clean up boot1.c, and replace for l

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

2018-01-16 Thread Toomas Soome
Author: tsoome Date: Tue Jan 16 20:35:54 2018 New Revision: 328061 URL: https://svnweb.freebsd.org/changeset/base/328061 Log: utf8_to_ucs2() should check for malloc failure utf8_to_ucs2() is calling malloc() without checking the result. Reviewed by: imp Differential Revision:

svn commit: r332170 - head/stand/libsa

2018-04-07 Thread Toomas Soome
Author: tsoome Date: Sat Apr 7 14:40:09 2018 New Revision: 332170 URL: https://svnweb.freebsd.org/changeset/base/332170 Log: libsa: cd9660: warning: 'lenskip' may be used uninitialized in this function We better provide value for lenskip in both instances. Modified: head/stand/libsa/cd9

svn commit: r332173 - head/stand/libsa

2018-04-07 Thread Toomas Soome
Author: tsoome Date: Sat Apr 7 14:42:47 2018 New Revision: 332173 URL: https://svnweb.freebsd.org/changeset/base/332173 Log: libsa: name is not used in dirmatch() Seems like variable 'name' is leftover. Modified: head/stand/libsa/cd9660read.c Modified: head/stand/libsa/cd9660read.c ===

svn commit: r332270 - head/stand/forth

2018-04-08 Thread Toomas Soome
Author: tsoome Date: Sun Apr 8 11:39:27 2018 New Revision: 332270 URL: https://svnweb.freebsd.org/changeset/base/332270 Log: loader: include efi.4th only if we do have uefi Also simplify efi.4th. Modified: head/stand/forth/efi.4th head/stand/forth/loader.4th head/stand/forth/loader.

svn commit: r332272 - head/stand/forth

2018-04-08 Thread Toomas Soome
Author: tsoome Date: Sun Apr 8 11:55:27 2018 New Revision: 332272 URL: https://svnweb.freebsd.org/changeset/base/332272 Log: loader: 332270 did use wrong path for efi.4th The correct path is still /boot/efi.4th Modified: head/stand/forth/loader.4th Modified: head/stand/forth/loader.4t

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

2018-04-08 Thread Toomas Soome
Author: tsoome Date: Sun Apr 8 13:40:38 2018 New Revision: 332275 URL: https://svnweb.freebsd.org/changeset/base/332275 Log: loader: 332270 did left out stand/i386/loader/loader.rc we have 2 instances of loader.rc... Modified: head/stand/i386/loader/loader.rc Modified: head/stand/i386/

Re: svn commit: r332272 - head/stand/forth

2018-04-08 Thread Toomas Soome
> On 8 Apr 2018, at 17:23, O. Hartmann wrote: > > -BEGIN PGP SIGNED MESSAGE- > Hash: SHA512 > > Am Sun, 8 Apr 2018 11:55:27 +0000 (UTC) > Toomas Soome schrieb: > >> Author: tsoome >> Date: Sun Apr 8 11:55:27 2018 >> New Revision: 332272 &g

svn commit: r332555 - head/stand/common

2018-04-16 Thread Toomas Soome
Author: tsoome Date: Mon Apr 16 07:26:23 2018 New Revision: 332555 URL: https://svnweb.freebsd.org/changeset/base/332555 Log: loader: provide values in help_getnext() With r328289 we attempt to make sure we free the resources allocated in help_getnext(), however, it is possible that we ge

svn commit: r332557 - head/stand/common

2018-04-16 Thread Toomas Soome
Author: tsoome Date: Mon Apr 16 08:15:50 2018 New Revision: 332557 URL: https://svnweb.freebsd.org/changeset/base/332557 Log: loader: make sure we use snprintf() in commands.c Safeguard against memory corruptions. Modified: head/stand/common/commands.c Modified: head/stand/common/comman

svn commit: r332558 - head/stand/common

2018-04-16 Thread Toomas Soome
Author: tsoome Date: Mon Apr 16 08:41:44 2018 New Revision: 332558 URL: https://svnweb.freebsd.org/changeset/base/332558 Log: loader: command_errmsg should be const Use const char * for command_errmsg. Modified: head/stand/common/bootstrap.h head/stand/common/commands.c Modified: head

svn commit: r332560 - head/stand/common

2018-04-16 Thread Toomas Soome
Author: tsoome Date: Mon Apr 16 12:46:14 2018 New Revision: 332560 URL: https://svnweb.freebsd.org/changeset/base/332560 Log: loader: make sure we do not return garbage from help_getnext Since we do free subtopic and desc in help_getnext(), we need to set them also NULL, so we make sure w

svn commit: r332565 - head/stand/common

2018-04-16 Thread Toomas Soome
Author: tsoome Date: Mon Apr 16 14:10:19 2018 New Revision: 332565 URL: https://svnweb.freebsd.org/changeset/base/332565 Log: loader: cstyle cleanup of command.c just clean it up. no functional changes intended. Reviewed by: imp Differential Revision:https://reviews.freebsd.

svn commit: r318297 - head/sys/dev/e1000

2017-05-15 Thread Toomas Soome
Author: tsoome Date: Mon May 15 16:53:02 2017 New Revision: 318297 URL: https://svnweb.freebsd.org/changeset/base/318297 Log: e1000api: misleading-indentation Two blocks in e1000_ich8lan.c are misaligned, causing noise with some compilers (gcc 6). Reviewed by: imp, erj Differentia

svn commit: r318320 - head/lib/libstand

2017-05-15 Thread Toomas Soome
Author: tsoome Date: Mon May 15 21:50:34 2017 New Revision: 318320 URL: https://svnweb.freebsd.org/changeset/base/318320 Log: loader: add ip layer code into libstand Implement simple separate ip module and fragment re-assembly. The work is based on send and receive previously implement

svn commit: r318356 - in head: lib/libstand sys/boot/i386/pxeldr

2017-05-16 Thread Toomas Soome
Author: tsoome Date: Tue May 16 17:35:05 2017 New Revision: 318356 URL: https://svnweb.freebsd.org/changeset/base/318356 Log: libstand: increase nfs max read size to 16k With ip fragment reassembly implemented, it makes sense to allow larger nfs reads. Note due to loader heap size limit,

svn commit: r319084 - head/sys/boot/common

2017-05-28 Thread Toomas Soome
Author: tsoome Date: Sun May 28 21:20:55 2017 New Revision: 319084 URL: https://svnweb.freebsd.org/changeset/base/319084 Log: Small cleanup in dev_net.c The variable servip is unused. One leftover printf and small cstyle nit. Reviewed by: bapt Differential Revision:https://r

svn commit: r319085 - head/lib/libstand

2017-05-28 Thread Toomas Soome
Author: tsoome Date: Sun May 28 21:30:01 2017 New Revision: 319085 URL: https://svnweb.freebsd.org/changeset/base/319085 Log: use the same option list for dhcp discovery and request The DHCP client is supposed to use the same option request list for both DHCP discovery and request. T

svn commit: r319601 - head/lib/libmd

2017-06-05 Thread Toomas Soome
Author: tsoome Date: Mon Jun 5 11:55:26 2017 New Revision: 319601 URL: https://svnweb.freebsd.org/changeset/base/319601 Log: ANSIfy md5 functions Update the function declarations. Reviewed by: dim Differential Revision:https://reviews.freebsd.org/D11055 Modified: head/li

svn commit: r320011 - in head/sys/boot: efi/loader forth i386/libi386 i386/loader

2017-06-16 Thread Toomas Soome
d: head/sys/boot/i386/libi386/relocater_tramp.S == --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/sys/boot/i386/libi386/relocater_tramp.SFri Jun 16 20:08:44 2017(r320011) @@ -0,

Re: svn commit: r320234 - head/sys/boot/efi/include

2017-06-22 Thread Toomas Soome
> On 22. juuni 2017, at 21:23, Dimitry Andric wrote: > > On 22 Jun 2017, at 16:30, Ed Maste wrote: >> >> Author: emaste >> Date: Thu Jun 22 14:30:09 2017 >> New Revision: 320234 >> URL: https://svnweb.freebsd.org/changeset/base/320234 >> >> Log: >> Make structure padding explicit in EFI_MEMOR

svn commit: r320467 - in head/sys/boot/i386: libi386 loader

2017-06-28 Thread Toomas Soome
Author: tsoome Date: Thu Jun 29 04:33:55 2017 New Revision: 320467 URL: https://svnweb.freebsd.org/changeset/base/320467 Log: loader: chain load relocate data declaration is bad The implementation is using fixed size array allocated in asm module, need to use proper array declaration for

svn commit: r307865 - head/sys/boot/zfs

2016-10-24 Thread Toomas Soome
Author: tsoome Date: Mon Oct 24 16:28:54 2016 New Revision: 307865 URL: https://svnweb.freebsd.org/changeset/base/307865 Log: loader should boot pre-feature flags pools. The feature flags chek is missing the corner case where we have valid pool version, but feature flags are not enabled -

svn commit: r308195 - head/sys/boot/efi/libefi

2016-11-01 Thread Toomas Soome
Author: tsoome Date: Wed Nov 2 06:37:35 2016 New Revision: 308195 URL: https://svnweb.freebsd.org/changeset/base/308195 Log: efinet_dev_print should honor verbose option. lsdev should display detailed information about net devices only with -v switch. This will make EFI and BIOS version

svn commit: r308434 - in head: lib/libstand sys/boot/common sys/boot/efi/libefi sys/boot/efi/loader sys/boot/i386/libfirewire sys/boot/i386/libi386 sys/boot/mips/beri/loader sys/boot/ofw/libofw sys...

2016-11-07 Thread Toomas Soome
Author: tsoome Date: Tue Nov 8 06:50:18 2016 New Revision: 308434 URL: https://svnweb.freebsd.org/changeset/base/308434 Log: Loader paged/pageable data is not always paged. This change does modify devsw dv_print() to return the int value, enabling walkers to interrupt the walk on non zer

svn commit: r308476 - head/sys/boot/forth

2016-11-09 Thread Toomas Soome
Author: tsoome Date: Wed Nov 9 21:28:46 2016 New Revision: 308476 URL: https://svnweb.freebsd.org/changeset/base/308476 Log: boot/forth spelling issue in forth word Reviewed by: dteske, imp Approved by: imp (mentor) Differential Revision:https://reviews.freebsd.org/D8484 Mod

Re: svn commit: r308434 - in head: lib/libstand sys/boot/common sys/boot/efi/libefi sys/boot/efi/loader sys/boot/i386/libfirewire sys/boot/i386/libi386 sys/boot/mips/beri/loader sys/boot/ofw/libofw sy

2016-11-10 Thread Toomas Soome
lizing 'void (*)(int)' with an expression of type 'int > (int)' [-Werror,-Wincompatible-pointer-types] > .dv_print = zfs_dev_print, > ^ > 1 error generated. > *** Error code 1 > > Stop. > make[2]: stopped in /us

Re: svn commit: r308434 - in head: lib/libstand sys/boot/common sys/boot/efi/libefi sys/boot/efi/loader sys/boot/i386/libfirewire sys/boot/i386/libi386 sys/boot/mips/beri/loader sys/boot/ofw/libofw sy

2016-11-11 Thread Toomas Soome
change, as you can not really build new source with using old headers. rgds, toomas > > On Thu, Nov 10, 2016 at 11:52 PM, Kamil Czekirda wrote: >> cp /usr/src/lib/libstand/libstand.h /usr/include/stand.h fixed that >> >> thanks >> >> 2016-11-10 23:28 GMT

svn commit: r308774 - head/sys/boot/mips/beri/loader

2016-11-17 Thread Toomas Soome
Author: tsoome Date: Thu Nov 17 18:38:35 2016 New Revision: 308774 URL: https://svnweb.freebsd.org/changeset/base/308774 Log: loader: beri_sdcard_disk_print() needs to return int. The https://reviews.freebsd.org/rS308434 did change the return type for dv_print callbacks, but the return ty

svn commit: r308776 - head/sys/boot/zfs

2016-11-17 Thread Toomas Soome
Author: tsoome Date: Thu Nov 17 19:38:30 2016 New Revision: 308776 URL: https://svnweb.freebsd.org/changeset/base/308776 Log: loader: zfs toplevel vdev must have spa set. The salt based checksum mechanisms, such as skein, are storing the seed in spa structure, and need to access the spa t

svn commit: r308827 - in head/sys/boot: common efi/libefi i386/libfirewire i386/libi386 mips/beri/loader pc98/libpc98 uboot/lib usb/storage userboot/userboot zfs

2016-11-19 Thread Toomas Soome
Author: tsoome Date: Sat Nov 19 08:54:21 2016 New Revision: 308827 URL: https://svnweb.freebsd.org/changeset/base/308827 Log: lsdev device name section headers should be printed by dv_print callback. lsdev command does walk over devsw list, prints list element name and will use dv_print()

svn commit: r308843 - head/sys/boot/i386/libi386

2016-11-19 Thread Toomas Soome
Author: tsoome Date: Sat Nov 19 16:08:40 2016 New Revision: 308843 URL: https://svnweb.freebsd.org/changeset/base/308843 Log: loader: smbios version check is not correct The version check for sku and family values is not correct, as this data is valid for version 2.4+, that also includes

svn commit: r309369 - head/lib/libstand

2016-12-01 Thread Toomas Soome
Author: tsoome Date: Thu Dec 1 19:19:20 2016 New Revision: 309369 URL: https://svnweb.freebsd.org/changeset/base/309369 Log: libstand: dosfs cstyle cleanup for return keyword. Reviewed by: bapt, imp, allanjude Approved by: imp (mentor), allanjude (mentor) Differential Revision:

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

2019-10-06 Thread Toomas Soome
Author: tsoome Date: Sun Oct 6 18:38:58 2019 New Revision: 353146 URL: https://svnweb.freebsd.org/changeset/base/353146 Log: loader.efi: for text mode, use STM to scroll the whole screen Since local UEFI console is implemented on top of framebuffer, we need to avoid redrawing the whole s

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

2019-10-15 Thread Toomas Soome
Author: tsoome Date: Tue Oct 15 08:33:05 2019 New Revision: 353544 URL: https://svnweb.freebsd.org/changeset/base/353544 Log: boot1.efi: provide generic exit() and stub getchar() panic() is expecting us to have exit and getchar, lets provide those. Modified: head/stand/efi/boot1/boot1.c

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

2019-10-19 Thread Toomas Soome
Author: tsoome Date: Sat Oct 19 08:08:06 2019 New Revision: 353757 URL: https://svnweb.freebsd.org/changeset/base/353757 Log: loader: zfs_fmtdev can crash when pool discovery did fail and we have no spa When zfs probe did fail and no spa was created, but zfs_fmtdev() is called, we will cr

svn commit: r354015 - head/stand/userboot/test

2019-10-24 Thread Toomas Soome
Author: tsoome Date: Thu Oct 24 07:49:33 2019 New Revision: 354015 URL: https://svnweb.freebsd.org/changeset/base/354015 Log: userboot/test should use PRIx64 as one would expect from prefix 0x Test is printing decimal value after prefix 0x. Modified: head/stand/userboot/test/test.c Modi

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

2019-10-26 Thread Toomas Soome
Author: tsoome Date: Sat Oct 26 18:29:02 2019 New Revision: 354119 URL: https://svnweb.freebsd.org/changeset/base/354119 Log: loader: rs_alloc() may return NULL rs_alloc() in zfs reader code may return NULL, so we need to check the return value and error out if needed. MFC after:1 we

svn commit: r354127 - head/sys/cddl/boot/zfs

2019-10-27 Thread Toomas Soome
Author: tsoome Date: Sun Oct 27 08:35:29 2019 New Revision: 354127 URL: https://svnweb.freebsd.org/changeset/base/354127 Log: loader: zio_checksum_verify should check byteswap We do have both native and byteswap checksum callbacks in place but the selection is not wired. MFC after:

svn commit: r354237 - head/stand/libsa

2019-10-31 Thread Toomas Soome
Author: tsoome Date: Fri Nov 1 06:54:07 2019 New Revision: 354237 URL: https://svnweb.freebsd.org/changeset/base/354237 Log: loader: asprinf does crash arm64 due to missing NULL pointer check PCHAR macro needs to check if d is NULL. MFC after:3 days Modified: head/stand/libsa/p

svn commit: r354249 - in head/stand/efi: include libefi loader

2019-11-02 Thread Toomas Soome
Author: tsoome Date: Sat Nov 2 09:50:36 2019 New Revision: 354249 URL: https://svnweb.freebsd.org/changeset/base/354249 Log: loader: fall back to term_emu on efi console with serial backend In case of efi console having serial backend (video + serial or only serial), we need to stick wit

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

2019-11-02 Thread Toomas Soome
Author: tsoome Date: Sat Nov 2 10:53:23 2019 New Revision: 354252 URL: https://svnweb.freebsd.org/changeset/base/354252 Log: loader: libi386/comconsole.c cstyle cleanup Only cstyle, no functional changes. Modified: head/stand/i386/libi386/comconsole.c Modified: head/stand/i386/libi386/

svn commit: r354253 - in head: cddl/lib/libzpool stand/efi/boot1 stand/i386/gptzfsboot stand/i386/zfsboot stand/libsa stand/libsa/zfs sys/cddl/boot/zfs sys/cddl/contrib/opensolaris/common/lz4 sys/c...

2019-11-02 Thread Toomas Soome
Author: tsoome Date: Sat Nov 2 12:28:04 2019 New Revision: 354253 URL: https://svnweb.freebsd.org/changeset/base/354253 Log: Remove duplicate lz4 implementations Port illumos change: https://www.illumos.org/issues/11667 Move lz4.c out of zfs tree to opensolaris/common/lz4, adjust it t

svn commit: r354254 - head/sys/cddl/boot/zfs

2019-11-02 Thread Toomas Soome
Author: tsoome Date: Sat Nov 2 15:08:19 2019 New Revision: 354254 URL: https://svnweb.freebsd.org/changeset/base/354254 Log: r354253 did miss lz4.c from sys/cddl/boot/zfs. Deleted: head/sys/cddl/boot/zfs/lz4.c ___ svn-src-head@freebsd.org mailing l

svn commit: r354264 - head/sys/conf

2019-11-02 Thread Toomas Soome
Author: tsoome Date: Sat Nov 2 20:46:45 2019 New Revision: 354264 URL: https://svnweb.freebsd.org/changeset/base/354264 Log: r354253 did miss the updates to sys/conf/files and sys/conf/kern.pre.mk Reported by: Brandon Bergren Modified: head/sys/conf/files head/sys/conf/kern.pre.mk M

svn commit: r354265 - in head: cddl/lib/libzpool sys/cddl/contrib/opensolaris/common/lz4

2019-11-02 Thread Toomas Soome
Author: tsoome Date: Sat Nov 2 21:02:54 2019 New Revision: 354265 URL: https://svnweb.freebsd.org/changeset/base/354265 Log: r354253 did miss the fact that libzpool is built as fake kernel We build libzpool as kernel like, use _FAKE_KERNEL check to include kernel api in libzpool. Added:

svn commit: r354267 - head/sys/conf

2019-11-02 Thread Toomas Soome
Author: tsoome Date: Sat Nov 2 21:52:45 2019 New Revision: 354267 URL: https://svnweb.freebsd.org/changeset/base/354267 Log: r354264 did mix up the directory path The correct path is sys/cddl/contrib/opensolaris/common/lz4, not sys/cddl/contrib/opensolaris/lz4 Reported by: Michael

svn commit: r354278 - head/stand/userboot/test

2019-11-03 Thread Toomas Soome
Author: tsoome Date: Sun Nov 3 09:14:29 2019 New Revision: 354278 URL: https://svnweb.freebsd.org/changeset/base/354278 Log: loader: userboot/test should accept more than one disk allow to specify multiple -d options, test -d disk1 -d disk2 .. Modified: head/stand/userboot/test/test.c

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

2019-11-03 Thread Toomas Soome
Author: tsoome Date: Sun Nov 3 11:09:06 2019 New Revision: 354279 URL: https://svnweb.freebsd.org/changeset/base/354279 Log: loader: calculate physical vdev psize from asize Since physical device asize is calculated from psize and the asize is stored in pool label, we can use asize to se

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

2019-11-03 Thread Toomas Soome
Author: tsoome Date: Sun Nov 3 13:03:47 2019 New Revision: 354282 URL: https://svnweb.freebsd.org/changeset/base/354282 Log: loader: should check malloc in zfs_dev_open malloc can return NULL. Modified: head/stand/libsa/zfs/zfs.c Modified: head/stand/libsa/zfs/zfs.c ===

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

2019-11-03 Thread Toomas Soome
Author: tsoome Date: Sun Nov 3 13:25:47 2019 New Revision: 354283 URL: https://svnweb.freebsd.org/changeset/base/354283 Log: loader: we do not support booting from pool with log device If pool has log device, stop there and tell about it. Modified: head/stand/libsa/zfs/zfs.c head/stan

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

2019-11-03 Thread Toomas Soome
Author: tsoome Date: Sun Nov 3 14:36:16 2019 New Revision: 354284 URL: https://svnweb.freebsd.org/changeset/base/354284 Log: loader: zfs.c is missing malloc checks, fix it malloc() can return NULL, we need to check the return value. Modified: head/stand/libsa/zfs/zfs.c Modified: head/s

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

2019-11-03 Thread Toomas Soome
Author: tsoome Date: Sun Nov 3 21:19:52 2019 New Revision: 354323 URL: https://svnweb.freebsd.org/changeset/base/354323 Log: loader: factor out label and uberblock load from vdev_probe, add MMP checks Clean up the label read. Modified: head/stand/libsa/zfs/zfsimpl.c head/sys/cddl/boot

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

2019-11-03 Thread Toomas Soome
Author: tsoome Date: Sun Nov 3 21:36:29 2019 New Revision: 354324 URL: https://svnweb.freebsd.org/changeset/base/354324 Log: loader: allow booting from pool with log device Apparently people are using log with boot pool, so we can not just error out there. Still we will need to investiga

svn commit: r354332 - head/stand/common

2019-11-04 Thread Toomas Soome
Author: tsoome Date: Mon Nov 4 12:20:19 2019 New Revision: 354332 URL: https://svnweb.freebsd.org/changeset/base/354332 Log: loader: show APFS partition type name Add small visual aid in lsdev output. Modified: head/stand/common/part.c head/stand/common/part.h Modified: head/stand/co

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

2019-11-05 Thread Toomas Soome
Author: tsoome Date: Tue Nov 5 18:07:30 2019 New Revision: 354363 URL: https://svnweb.freebsd.org/changeset/base/354363 Log: loader: populate nvl with data even when label_txg is 0 We actually do not use that data, at least not now, but we want to avoid possible surprises. Modified: h

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

2019-11-05 Thread Toomas Soome
Author: tsoome Date: Tue Nov 5 18:35:13 2019 New Revision: 354364 URL: https://svnweb.freebsd.org/changeset/base/354364 Log: loader: clean up the noise around log device We are ignoring log device but we also do want to have clean code. Modified: head/stand/libsa/zfs/zfs.c head/stand/

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

2019-11-06 Thread Toomas Soome
Author: tsoome Date: Wed Nov 6 21:13:10 2019 New Revision: 354415 URL: https://svnweb.freebsd.org/changeset/base/354415 Log: loader.efi: HARDDRIVE_DEVICE_PATH may have subpaths The macos does create Vendor Media devices on top of APFS container (like partition table inside the partition)

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

2019-11-07 Thread Toomas Soome
Author: tsoome Date: Thu Nov 7 11:17:03 2019 New Revision: 354435 URL: https://svnweb.freebsd.org/changeset/base/354435 Log: loader: implement fallback efi_devpath_to_name() UEFI 1.10 on macs does not seem to provide devpath to name translation, provide our own (limited) version, so we c

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

2019-11-08 Thread Toomas Soome
Author: tsoome Date: Fri Nov 8 12:19:03 2019 New Revision: 354535 URL: https://svnweb.freebsd.org/changeset/base/354535 Log: cstyle cleanup for i386_copy.c No functional changes are intended. Modified: head/stand/i386/libi386/i386_copy.c Modified: head/stand/i386/libi386/i386_copy.c ==

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

2019-11-10 Thread Toomas Soome
Author: tsoome Date: Sun Nov 10 15:03:59 2019 New Revision: 354593 URL: https://svnweb.freebsd.org/changeset/base/354593 Log: loader: memory leak in vdev_label_read_config() We need to free the allocated buffer for label. Modified: head/stand/libsa/zfs/zfsimpl.c Modified: head/stand/lib

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

2019-11-10 Thread Toomas Soome
Author: tsoome Date: Sun Nov 10 15:07:36 2019 New Revision: 354594 URL: https://svnweb.freebsd.org/changeset/base/354594 Log: loader: use struct initializer in vdev_probe(). Hopefully it is a bit more clear this way. Modified: head/stand/libsa/zfs/zfsimpl.c Modified: head/stand/libsa/zf

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

2019-11-12 Thread Toomas Soome
Author: tsoome Date: Tue Nov 12 10:02:39 2019 New Revision: 354635 URL: https://svnweb.freebsd.org/changeset/base/354635 Log: reverting r354594 In our case the structure is more complex and simple static initializer will upset compiler diagnostics - using memset is still better than build

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

2019-11-15 Thread Toomas Soome
Author: tsoome Date: Fri Nov 15 18:57:00 2019 New Revision: 354743 URL: https://svnweb.freebsd.org/changeset/base/354743 Log: loader: r354415 did miss to sort subpaths below the partitions Tested on actual system (MBP with UEFI 1.10). Modified: head/stand/efi/libefi/efipart.c Modified:

svn commit: r354746 - head/stand/common

2019-11-15 Thread Toomas Soome
Author: tsoome Date: Fri Nov 15 20:43:39 2019 New Revision: 354746 URL: https://svnweb.freebsd.org/changeset/base/354746 Log: loader: add support for hybrid PMBR for GPT partition table Note hybrid table is nor really UEFI specification compliant. Sample hybrid partition table: > ::m

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

2019-11-16 Thread Toomas Soome
Author: tsoome Date: Sat Nov 16 08:16:50 2019 New Revision: 354766 URL: https://svnweb.freebsd.org/changeset/base/354766 Log: loader: remove unused variable from efipart.c Modified: head/stand/efi/libefi/efipart.c Modified: head/stand/efi/libefi/efipart.c

svn commit: r355224 - in head/stand/efi: include libefi

2019-11-30 Thread Toomas Soome
Author: tsoome Date: Sat Nov 30 09:11:28 2019 New Revision: 355224 URL: https://svnweb.freebsd.org/changeset/base/355224 Log: loader.efi: efipart needs better support detecting nested partitions Just as disks can have nested partitions, the same happens with cd devices, so we need to dete

svn commit: r355291 - head/cddl/lib/libzpool

2019-12-02 Thread Toomas Soome
Author: tsoome Date: Mon Dec 2 15:37:06 2019 New Revision: 355291 URL: https://svnweb.freebsd.org/changeset/base/355291 Log: libzpool: use CFLAGS.lz4.c to build lz4.o and lz4.pico Clean up this Makefile a bit. Modified: head/cddl/lib/libzpool/Makefile Modified: head/cddl/lib/libzpool/M

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

2019-08-20 Thread Toomas Soome
Author: tsoome Date: Tue Aug 20 19:31:11 2019 New Revision: 351274 URL: https://svnweb.freebsd.org/changeset/base/351274 Log: loader.efi: efipart should be more careful about constructing block device lists The cd handles should be collected as list of partitions. Some systems also provi

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

2019-08-30 Thread Toomas Soome
Author: tsoome Date: Fri Aug 30 20:54:30 2019 New Revision: 351630 URL: https://svnweb.freebsd.org/changeset/base/351630 Log: qemu-system-aarch64 does list block device with very large block size Also insert Vendor device as "parent" disk (found in qemu-system-aarch64 -cpu cortex-a57).

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

2019-08-30 Thread Toomas Soome
Author: tsoome Date: Sat Aug 31 06:24:09 2019 New Revision: 351637 URL: https://svnweb.freebsd.org/changeset/base/351637 Log: loader.efi: use shift 16 in efipart as it is max ashift supported by zfs Modified: head/stand/efi/libefi/efipart.c Modified: head/stand/efi/libefi/efipart.c =

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

2019-09-02 Thread Toomas Soome
Author: tsoome Date: Mon Sep 2 10:45:10 2019 New Revision: 351695 URL: https://svnweb.freebsd.org/changeset/base/351695 Log: loader.efi: some systems do not translate scan code 0x8 to backspace Add scancode translation for backspace. Modified: head/stand/efi/libefi/efi_console.c Modifi

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

2019-09-02 Thread Toomas Soome
Author: tsoome Date: Mon Sep 2 11:04:17 2019 New Revision: 351696 URL: https://svnweb.freebsd.org/changeset/base/351696 Log: loader.efi: use and prefer coninex interface Add support for EFI_SIMPLE_TEXT_INPUT_EX_PROTOCOL. Modified: head/stand/efi/libefi/efi_console.c Modified: head/stan

svn commit: r346000 - head/stand/common

2019-09-03 Thread Toomas Soome
Author: tsoome Date: Sun Apr 7 11:55:11 2019 New Revision: 346000 URL: https://svnweb.freebsd.org/changeset/base/346000 Log: loader: remove pointer checks before free() in module.c free() does check for NULL argument, remove duplicate checks. MFC after:1w Modified: head/stand/c

svn commit: r346001 - head/stand/common

2019-09-03 Thread Toomas Soome
Author: tsoome Date: Sun Apr 7 12:10:19 2019 New Revision: 346001 URL: https://svnweb.freebsd.org/changeset/base/346001 Log: loader: file_addmetadata() should check for memory allocation malloc() can return NULL. MFC after:1w Modified: head/stand/common/module.c Modified: head

svn commit: r345999 - head/stand/common

2019-09-03 Thread Toomas Soome
Author: tsoome Date: Sun Apr 7 11:50:41 2019 New Revision: 345999 URL: https://svnweb.freebsd.org/changeset/base/345999 Log: loader: file_addmodule should check for memory allocation strdup() can return NULL. MFC after:1w Modified: head/stand/common/module.c Modified: head/sta

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

2019-09-03 Thread Toomas Soome
Author: tsoome Date: Sun Apr 7 14:07:28 2019 New Revision: 346008 URL: https://svnweb.freebsd.org/changeset/base/346008 Log: loader: command_lsefi: ret can be used uninitialized MFC after:1w Modified: head/stand/efi/loader/main.c Modified: head/stand/efi/loader/main.c =

svn commit: r346002 - head/stand/common

2019-09-03 Thread Toomas Soome
Author: tsoome Date: Sun Apr 7 12:20:17 2019 New Revision: 346002 URL: https://svnweb.freebsd.org/changeset/base/346002 Log: loader: mod_loadkld() error: we previously assumed 'last_file' could be null The last_file variable is used to reset the loadaddr variable back to original value;

svn commit: r345998 - head/stand/common

2019-09-03 Thread Toomas Soome
Author: tsoome Date: Sun Apr 7 11:48:41 2019 New Revision: 345998 URL: https://svnweb.freebsd.org/changeset/base/345998 Log: loader: malloc+bzero is calloc Replace malloc+bzero in module.c with calloc. MFC after:1w Modified: head/stand/common/module.c Modified: head/stand/comm

svn commit: r346007 - head/stand/common

2019-09-03 Thread Toomas Soome
Author: tsoome Date: Sun Apr 7 13:36:17 2019 New Revision: 346007 URL: https://svnweb.freebsd.org/changeset/base/346007 Log: loader: add file_remove() function to undo file_insert_tail(). 346002 did miss the fact that we do not only undo the loadaddr, but also we need to remove the inser

svn commit: r351837 - head/stand/ficl

2019-09-05 Thread Toomas Soome
Author: tsoome Date: Thu Sep 5 09:04:48 2019 New Revision: 351837 URL: https://svnweb.freebsd.org/changeset/base/351837 Log: ficl: add uIsGreater word For some reason we have u< but not u>, fix it. Modified: head/stand/ficl/words.c Modified: head/stand/ficl/words.c

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

2019-09-05 Thread Toomas Soome
Author: tsoome Date: Thu Sep 5 15:06:30 2019 New Revision: 351865 URL: https://svnweb.freebsd.org/changeset/base/351865 Log: ficl: add xemit word While emit will output one byte on screen, the xemit will output xchar. See: http://forth-standard.org/standard/xchar/XEMIT Modified: he

svn commit: r351881 - head/sys/teken

2019-09-05 Thread Toomas Soome
Author: tsoome Date: Thu Sep 5 18:07:40 2019 New Revision: 351881 URL: https://svnweb.freebsd.org/changeset/base/351881 Log: Adjust teken to allow build as part of loader Building for loader needs specific headers. Modified: head/sys/teken/teken.c Modified: head/sys/teken/teken.c =

svn commit: r351900 - in head/stand: . efi/include efi/libefi efi/loader efi/loader/arch/amd64 efi/loader/arch/i386 forth i386/libi386 lua

2019-09-05 Thread Toomas Soome
Author: tsoome Date: Thu Sep 5 22:15:50 2019 New Revision: 351900 URL: https://svnweb.freebsd.org/changeset/base/351900 Log: loader: use teken teminal emulator for x86 and uefi Replace mini cons25 emulator with teken, this does enable us proper console terminal for loader and will make i

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

2019-09-06 Thread Toomas Soome
Author: tsoome Date: Fri Sep 6 19:30:23 2019 New Revision: 351959 URL: https://svnweb.freebsd.org/changeset/base/351959 Log: loader.efi: UEFI text mode background colors are only using 3 bits Need to mask background colors to pass allowed value. Modified: head/stand/efi/libefi/efi_conso

svn commit: r352032 - in head/stand: . i386/loader

2019-09-08 Thread Toomas Soome
Author: tsoome Date: Sun Sep 8 19:39:45 2019 New Revision: 352032 URL: https://svnweb.freebsd.org/changeset/base/352032 Log: loader: --gc-sections needs sections to work with --gc-sections is not really useful unless we generate sections with -ffunction-sections -fdata-sections Whil

svn commit: r352037 - head/stand/i386/zfsloader

2019-09-08 Thread Toomas Soome
Author: tsoome Date: Sun Sep 8 19:54:28 2019 New Revision: 352037 URL: https://svnweb.freebsd.org/changeset/base/352037 Log: remove leftover zfsloader directory It really is empty. Deleted: head/stand/i386/zfsloader/ ___ svn-src-head@freebsd.o

svn commit: r352195 - in head/stand/i386: libi386 loader

2019-09-10 Thread Toomas Soome
Author: tsoome Date: Tue Sep 10 21:53:42 2019 New Revision: 352195 URL: https://svnweb.freebsd.org/changeset/base/352195 Log: loader: vidconsole should set LINES and COLUMNS Set LINES and COLUMNS based on terminal dimensions. Modified: head/stand/i386/libi386/vidconsole.c head/stand/i3

svn commit: r352420 - head/stand/forth

2019-09-16 Thread Toomas Soome
Author: tsoome Date: Mon Sep 16 20:26:53 2019 New Revision: 352420 URL: https://svnweb.freebsd.org/changeset/base/352420 Log: loader_4th: scan_buffer can leave empty string on stack When the file processing is done, we will have string with lenght 0 in stack and we will attempt to alloca

svn commit: r352421 - head/stand/libsa

2019-09-16 Thread Toomas Soome
Author: tsoome Date: Mon Sep 16 20:28:08 2019 New Revision: 352421 URL: https://svnweb.freebsd.org/changeset/base/352421 Log: loader: Malloc(0) should return NULL. We really should not allocate anything with size 0. Modified: head/stand/libsa/zalloc_malloc.c Modified: head/stand/libsa/z

svn commit: r352439 - head/stand/libsa

2019-09-17 Thread Toomas Soome
Author: tsoome Date: Tue Sep 17 09:47:35 2019 New Revision: 352439 URL: https://svnweb.freebsd.org/changeset/base/352439 Log: loader: factor out guard location setup from Realloc To simplify and make it easier to read, use ga_Bytes field from guard structure. Modified: head/stand/libsa

svn commit: r352443 - head/stand/libsa

2019-09-17 Thread Toomas Soome
Author: tsoome Date: Tue Sep 17 11:35:53 2019 New Revision: 352443 URL: https://svnweb.freebsd.org/changeset/base/352443 Log: loader: cstyle cleanup libsa zalloc sources Clean up libstand zalloc* sources. Note that it is not 100% whitespace cleanup. I also reduced block in znalloc and zf

svn commit: r352444 - head/stand/libsa

2019-09-17 Thread Toomas Soome
Author: tsoome Date: Tue Sep 17 13:07:02 2019 New Revision: 352444 URL: https://svnweb.freebsd.org/changeset/base/352444 Log: loader: stand.h should define reallocf as Reallocf Use the same approach as other zalloc functions. Modified: head/stand/libsa/stand.h Modified: head/stand/libsa

  1   2   3   4   5   >