summaryrefslogtreecommitdiff
path: root/usr/src/boot/lib/libstand
AgeCommit message (Collapse)AuthorFilesLines
2020-12-2913398 libstand: xdrproc_t should return boolToomas Soome1-1/+1
Reviewed by: Robert Mustacchi <rm@fingolfin.org> Reviewed by: Gergő Mihály Doma <domag02@gmail.com> Approved by: Richard Lowe <richlowe@richlowe.net>
2020-12-1113353 loader: 13345 did miss byte and nvlist arrayToomas Soome1-12/+12
Reviewed by: Andy Fiddaman <andy@omnios.org> Approved by: Robert Mustacchi <rm@fingolfin.org>
2020-12-0713345 loader: xdr_array is missing countToomas Soome1-62/+185
Reviewed by: Andy Fiddaman <andy@omnios.org> Approved by: Robert Mustacchi <rm@fingolfin.org>
2020-12-0413344 loader: zfs_probe_partition should skip EFI System PartitionToomas Soome1-0/+1
Reviewed by: Yuri Pankov <yuripv@yuripv.dev> Reviewed by: Andy Fiddaman <andy@omnios.org> Approved by: Robert Mustacchi <rm@fingolfin.org>
2020-11-137537 want nextboot (one time boot) supportToomas Soome5-379/+2923
Reviewed by: Jason King <jason.brian.king+illumos@gmail.com> Reviewed by: Andy Fiddaman <andy@omniosce.org> Reviewed by: C Fraire <cfraire@me.com> Approved by: Dan McDonald <danmcd@joyent.com>
2020-10-0713155 loader: cstyle cleanup of pager.cToomas Soome1-78/+78
Reviewed by: Dan McDonald <danmcd@joyent.com> Reviewed by: Robert Mustacchi <rm@fingolfin.org> Approved by: Dan McDonald <danmcd@joyent.com>
2020-09-2513173 loader: add strtoul, strtoull, memmem and abortToomas Soome5-253/+45
Reviewed by: Robert Mustacchi <rm+illumos@fingolfin.org> Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Dan McDonald <danmcd@joyent.com>
2020-09-2113160 loader: Remove NAND and NANDFS supportToomas Soome2-1062/+0
Reviewed by: Andy Fiddaman <andy@omniosce.org> Reviewed by: C Fraire <cfraire@me.com> Approved by: Dan McDonald <danmcd@joyent.com>
2020-08-2213062 loader: make env_discard() publicToomas Soome2-126/+122
Reviewed by: Andy Fiddaman <andy@omniosce.org> Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Approved by: Robert Mustacchi <rm@fingolfin.org>
2020-07-1312935 loader: setting vdev size based on label asize is not workingToomas Soome1-4/+52
Reviewed by: C Fraire <cfraire@me.com> Approved by: Dan McDonald <danmcd@joyent.com>
2020-07-0812927 loader: move zfs_boot_args to bootargs.hToomas Soome1-24/+7
Reviewed by: Igor Kozhukhov <igor@dilos.org> Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Robert Mustacchi <rm@fingolfin.org>
2020-07-0712926 libstand: add missing iscntrl() isgraph() and ispunct()Toomas Soome1-0/+16
Reviewed by: Yuri Pankov <ypankov@tintri.com> Reviewed by: Igor Kozhukhov <igor@dilos.org> Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Dan McDonald <danmcd@joyent.com>
2020-06-2712901 loader: can not read zfs pool with slog removedToomas Soome1-2/+12
Reviewed by: Yuri Pankov <ypankov@tintri.com> Reviewed by: Patrick Mooney <pmooney@pfmooney.com> Approved by: Robert Mustacchi <rm@fingolfin.org>
2020-06-1912836 loader: strings in nvlist are counted strings, not c-stringsToomas Soome1-70/+101
Reviewed by: Igor Kozhukhov <igor@dilos.org> Reviewed by: C Fraire <cfraire@me.com> Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Dan McDonald <danmcd@joyent.com>
2020-05-1112710 loader: vdev_read() can corrupt memoryToomas Soome1-6/+15
Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Reviewed by: Igor Kozhukhov <igor@dilos.org> Approved by: Robert Mustacchi <rm@fingolfin.org>
2020-02-2712333 loader: replace zfs_alloc/zfs_free with malloc/freeToomas Soome1-46/+30
Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Reviewed by: John Levon <john.levon@joyent.com> Approved by: Robert Mustacchi <rm@fingolfin.org>
2020-02-0712266 loader: rewrite zfs reader zap code to use mallocToomas Soome1-163/+273
Reviewed by: Gergő Mihály Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
2020-01-1712154 loader: readudp() does convert pointers with different alignment ↵Toomas Soome1-1/+1
(missed sizeof struct ip) Reviewed by: Matthias Scheler <mscheler@tintri.com> Approved by: Dan McDonald <danmcd@joyent.com>
2020-01-1712154 loader: readudp() does convert pointers with different alignmentToomas Soome1-17/+23
Reviewed by: Matthias Scheler <mscheler@tintri.com> Approved by: Dan McDonald <danmcd@joyent.com>
2020-01-0612078 loader: rewrite zfs vdev initializationToomas Soome1-248/+412
Reviewed by: Robert Mustacchi <rm@fingolfin.org> Approved by: Dan McDonald <danmcd@joyent.com>
2019-12-1612074 loader: cd9660_open() warn: is 'buf' large enough for 'struct ↵Toomas Soome1-4/+4
iso_primary_descriptor'? Reviewed by: John Levon <john.levon@joyent.com> Reviewed by: C Fraire <cfraire@me.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-12-1611055 loader: zfs reader cstyle cleanupToomas Soome1-137/+157
Reviewed by: Rob Johnston <rob.johnston@joyent.com> Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-11-1411935 loader: fix memory corruption bug in vdev_readToomas Soome1-30/+80
Reviewed by: Matthias Scheler <matthias.scheler@wdc.com> Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Dan McDonald <danmcd@joyent.com>
2019-11-1411933 loader: we can not read log device but we need to know aboutToomas Soome1-6/+14
Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Dan McDonald <danmcd@joyent.com>
2019-11-1311930 loader: factor out label and uberblock load from vdev_probe, add MMP ↵Toomas Soome1-90/+166
checks Reviewed by: C Fraire <cfraire@me.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-11-1011923 loader: zfs.c cstyle cleanupToomas Soome1-45/+29
Reviewed by: Matthias Scheler <matthias.scheler@wdc.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-11-0511914 loader: zfs.c is missing malloc checks, fix itToomas Soome1-197/+13
Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Matthias Scheler <matthias.scheler@wdc.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-11-0411888 loader: calculate physical vdev psize from asizeToomas Soome1-6/+23
Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Dan McDonald <danmcd@joyent.com>
2019-10-2911882 loader: rs_alloc() may return NULLToomas Soome1-5/+22
Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Dan McDonald <danmcd@joyent.com>
2019-10-2811881 loader: zfs_fmtdev can crash when pool discovery did fail and we have ↵Toomas Soome1-3/+8
no spa Reviewed by: C Fraire <cfraire@me.com> Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Garrett D'Amore <garrett@damore.org>
2019-10-0411740 loader: warning: unused parameterToomas Soome11-22/+31
Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Dan McDonald <danmcd@joyent.com>
2019-09-2711667 remove duplicate lz4 implementationsToomas Soome2-1/+6
Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Dan McDonald <danmcd@joyent.com>
2019-09-2711716 loader: add memalign()Toomas Soome4-12/+57
Reviewed by: Jason King <jason.king@joyent.com> Approved by: Robert Mustacchi <rm@fingolfin.org>
2019-09-2011702 loader: zalloc cstyle cleanupToomas Soome5-266/+271
Reviewed by: Andy Fiddaman <omnios@citrus-it.co.uk> Approved by: Dan McDonald <danmcd@joyent.com>
2019-08-1911565 loader: this statement may fall throughToomas Soome1-25/+27
Reviewed by: Andrew Stormont <andyjstormont@gmail.com> Reviewed by: Robert Mustacchi <robert.mustacchi@joyent.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-08-1510166 loader: support com.delphix:removingToomas Soome2-17/+715
Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-08-1211506 smatch resyncJohn Levon1-0/+4
Reviewed by: Yuri Pankov <yuri.pankov@nexenta.com> Reviewed by: Toomas Soome <tsoome@me.com> Approved by: Robert Mustacchi <rm@joyent.com>
2019-06-2811277 Loader cannot boot from root pool with encryption enabledAndy Fiddaman1-2/+9
Reviewed by: Dan McDonald <danmcd@joyent.com> Reviewed by: Toomas Soome <tsoome@me.com> Reviewed by: Gergő Mihály Doma <domag02@gmail.com> Reviewed by: Jerry Jelinek <jerry.jelinek@joyent.com> Approved by: Hans Rosenfeld <hans.rosenfeld@joyent.com>
2019-06-1811182 loader: Distinguish between "no partition" and "choose best partition" ↵Toomas Soome1-1/+1
with a constant. Reviewed by: John Levon <john.levon@joyent.com> Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Dan McDonald <danmcd@joyent.com>
2019-06-0411082 loader: Unexpand be32dec()Toomas Soome1-8/+3
Reviewed by: Gergő Doma <domag02@gmail.com> Reviewed by: Rob Johnston <rob.johnston@joyent.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-05-3111054 loader: malloc+memset is calloc in spa_createToomas Soome1-2/+1
Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-05-3111053 loader: zfs_alloc and zfs_free should use panicToomas Soome1-4/+2
Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-05-2111045 libstand: smatch errors in dosfs and zfs readerToomas Soome2-4/+4
Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-05-1010930 libstand: fix copyright numberingToomas Soome26-26/+26
Reviewed by: Gergő Doma <domag02@gmail.com> Reviewed by: Rob Johnston <rob.johnston@joyent.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-05-0810906 loader: non-ANSI definition of functionToomas Soome13-216/+138
Reviewed by: John Levon <john.levon@joyent.com> Reviewed by: Robert Mustacchi <rm@joyent.com> Approved by: Richard Lowe <richlowe@richlowe.net>
2019-04-2110696 loader: use zlib-1.2.11Toomas Soome1-12/+14
Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Richard Lowe <richlowe@richlowe.net>
2019-03-0710454 loader: panic does add newline for usToomas Soome5-11/+12
Reviewed by: John Levon <john.levon@joyent.com> Reviewed by: Andy Stormont <astormont@racktopsystems.com> Reviewed by: Gergő Mihály Doma <domag02@gmail.com> Reviewed by: Andy Fiddaman <andy@omniosce.org> Approved by: Richard Lowe <richlowe@richlowe.net>
2019-03-0510457 libstand: bzipfs.c cstyle cleanupToomas Soome1-265/+282
Reviewed by: Andy Fiddaman <andy@omniosce.org> Reviewed by: C Fraire <cfraire@me.com> Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-03-0110459 libstand: stand.h cstyle cleanupToomas Soome1-95/+101
Reviewed by: Andy Fiddaman <andy@omniosce.org> Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>
2019-03-0110458 libstand: assert.c cstyle cleanupToomas Soome1-2/+1
Reviewed by: Andy Fiddaman <andy@omniosce.org> Reviewed by: Gergő Doma <domag02@gmail.com> Approved by: Dan McDonald <danmcd@joyent.com>