The NetBSD Project

CVS log for src/sys/kern/subr_tftproot.c

[BACK] Up to [cvs.NetBSD.org] / src / sys / kern

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: MAIN


Revision 1.23 / (download) - annotate - [select for diffs], Sun Jan 20 21:26:13 2019 UTC (10 months, 3 weeks ago) by bad
Branch: MAIN
CVS Tags: phil-wifi-20191119, phil-wifi-20190609, pgoyette-compat-20190127, netbsd-9-base, netbsd-9-0-RC1, netbsd-9, isaki-audio2-base, isaki-audio2, HEAD
Changes since 1.22: +3 -2 lines
Diff to previous 1.22 (colored) to selected 1.21 (colored)

tftproot_getfile(): return E2BIG when bootfile is to long.

tftproot_getfile() must return something != 0 to indicate error when
the bootfile is to long.
error just got set to 0 when nfs_boot_setrecvtimo() was called.

found during code review. compile tested only.

Revision 1.22 / (download) - annotate - [select for diffs], Sat Oct 27 09:13:45 2018 UTC (13 months, 2 weeks ago) by mlelstv
Branch: MAIN
CVS Tags: pgoyette-compat-20190118, pgoyette-compat-1226, pgoyette-compat-1126
Changes since 1.21: +4 -3 lines
Diff to previous 1.21 (colored)

appease gcc

Revision 1.21 / (download) - annotate - [selected], Thu Feb 8 09:05:20 2018 UTC (22 months ago) by dholland
Branch: MAIN
CVS Tags: phil-wifi-base, pgoyette-compat-base, pgoyette-compat-1020, pgoyette-compat-0930, pgoyette-compat-0906, pgoyette-compat-0728, pgoyette-compat-0625, pgoyette-compat-0521, pgoyette-compat-0502, pgoyette-compat-0422, pgoyette-compat-0415, pgoyette-compat-0407, pgoyette-compat-0330, pgoyette-compat-0322, pgoyette-compat-0315
Branch point for: phil-wifi, pgoyette-compat
Changes since 1.20: +3 -3 lines
Diff to previous 1.20 (colored)

Typos.

Revision 1.20 / (download) - annotate - [select for diffs], Wed Feb 7 15:51:35 2018 UTC (22 months ago) by manu
Branch: MAIN
Changes since 1.19: +2 -5 lines
Diff to previous 1.19 (colored) to selected 1.21 (colored)

Fix md(4) double attachment in TFTPROOT option

The mdattach() call in tftproot_dhcpboot() has probably always been
useless, but it seems it became harmful, as it causes 7.1.1 to deadlock
during boot.

Revision 1.19 / (download) - annotate - [select for diffs], Mon Oct 31 15:27:24 2016 UTC (3 years, 1 month ago) by maxv
Branch: MAIN
CVS Tags: tls-maxphys-base-20171202, prg-localcount2-base3, prg-localcount2-base2, prg-localcount2-base1, prg-localcount2-base, prg-localcount2, pgoyette-localcount-20170426, pgoyette-localcount-20170320, pgoyette-localcount-20170107, pgoyette-localcount-20161104, perseant-stdc-iso10646-base, perseant-stdc-iso10646, nick-nhusb-base-20170825, nick-nhusb-base-20170204, nick-nhusb-base-20161204, netbsd-8-base, matt-nb8-mediatek-base, matt-nb8-mediatek, jdolecek-ncq-base, jdolecek-ncq, bouyer-socketcan-base1, bouyer-socketcan-base, bouyer-socketcan
Branch point for: netbsd-8
Changes since 1.18: +7 -7 lines
Diff to previous 1.18 (colored) to selected 1.21 (colored)

The mbuf is freed by the protocol even on error, so always NULL the pointer
instead of double-freeing it. Indirectly pointed out by Mootja.

Revision 1.18 / (download) - annotate - [select for diffs], Fri Jun 10 13:27:15 2016 UTC (3 years, 6 months ago) by ozaki-r
Branch: MAIN
CVS Tags: pgoyette-localcount-base, pgoyette-localcount-20160806, pgoyette-localcount-20160726, nick-nhusb-base-20161004, nick-nhusb-base-20160907, localcount-20160914
Branch point for: pgoyette-localcount
Changes since 1.17: +3 -3 lines
Diff to previous 1.17 (colored) to selected 1.21 (colored)

Introduce m_set_rcvif and m_reset_rcvif

The API is used to set (or reset) a received interface of a mbuf.
They are counterpart of m_get_rcvif, which will come in another
commit, hide internal of rcvif operation, and reduce the diff of
the upcoming change.

No functional change.

Revision 1.17 / (download) - annotate - [select for diffs], Thu May 12 02:24:16 2016 UTC (3 years, 7 months ago) by ozaki-r
Branch: MAIN
CVS Tags: nick-nhusb-base-20160529
Changes since 1.16: +8 -4 lines
Diff to previous 1.16 (colored) to selected 1.21 (colored)

Protect ifnet list with psz and psref

The change ensures that ifnet objects in the ifnet list aren't freed during
list iterations by using pserialize(9) and psref(9).

Note that the change adds a pslist(9) for ifnet but doesn't remove the
original ifnet list (ifnet_list) to avoid breaking kvm(3) users. We
shouldn't use the original list in the kernel anymore.

Revision 1.16 / (download) - annotate - [select for diffs], Thu May 21 02:04:22 2015 UTC (4 years, 6 months ago) by rtr
Branch: MAIN
CVS Tags: nick-nhusb-base-20160422, nick-nhusb-base-20160319, nick-nhusb-base-20151226, nick-nhusb-base-20150921, nick-nhusb-base-20150606
Changes since 1.15: +7 -11 lines
Diff to previous 1.15 (colored) to selected 1.21 (colored)

change nfs_boot_sendrecv to take sockaddr_in * instead of mbuf *

fixes m_serv (single mbuf leak) leak in kern/subr_tftproot.c

Revision 1.15 / (download) - annotate - [select for diffs], Sun May 10 18:55:22 2015 UTC (4 years, 7 months ago) by rtr
Branch: MAIN
Changes since 1.14: +3 -3 lines
Diff to previous 1.14 (colored) to selected 1.21 (colored)

mtod mbuf to sockaddr * for so_send().

Revision 1.14 / (download) - annotate - [select for diffs], Fri Mar 27 07:18:11 2015 UTC (4 years, 8 months ago) by hikaru
Branch: MAIN
CVS Tags: nick-nhusb-base-20150406
Changes since 1.13: +6 -5 lines
Diff to previous 1.13 (colored) to selected 1.21 (colored)

m_pullup() is called in rcvproc callback functions,
so nfs_boot_sendrecv() should keep track of the head of mbuf chain.
fixes kern/48746

Revision 1.13 / (download) - annotate - [select for diffs], Tue Aug 26 09:38:54 2014 UTC (5 years, 3 months ago) by manu
Branch: MAIN
CVS Tags: nick-nhusb-base
Branch point for: nick-nhusb
Changes since 1.12: +3 -2 lines
Diff to previous 1.12 (colored) to selected 1.21 (colored)

Fix build with TFTPROOT option enabled

Revision 1.12 / (download) - annotate - [select for diffs], Sat Dec 1 11:41:50 2012 UTC (7 years ago) by mbalmer
Branch: MAIN
CVS Tags: yamt-pagecache-base9, yamt-pagecache-base8, yamt-pagecache-base7, tls-maxphys-base, tls-earlyentropy-base, tls-earlyentropy, rmind-smpnet-nbase, rmind-smpnet-base, rmind-smpnet, riastradh-xf86-video-intel-2-7-1-pre-2-21-15, riastradh-drm2-base3, riastradh-drm2-base2, riastradh-drm2-base1, riastradh-drm2-base, riastradh-drm2, netbsd-7-base, khorben-n900, agc-symver-base, agc-symver
Branch point for: netbsd-7
Changes since 1.11: +3 -3 lines
Diff to previous 1.11 (colored) to selected 1.21 (colored)

Fix misspelling:  accommodate is a long enough word to have room for two 'c's
and two 'm's.

Revision 1.11 / (download) - annotate - [select for diffs], Sat Oct 27 17:18:39 2012 UTC (7 years, 1 month ago) by chs
Branch: MAIN
CVS Tags: yamt-pagecache-base6
Changes since 1.10: +6 -7 lines
Diff to previous 1.10 (colored) to selected 1.21 (colored)

split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.

Revision 1.10 / (download) - annotate - [select for diffs], Sun Aug 23 12:10:50 2009 UTC (10 years, 3 months ago) by manu
Branch: MAIN
CVS Tags: yamt-pagecache-base5, yamt-pagecache-base4, yamt-pagecache-base3, yamt-pagecache-base2, yamt-pagecache-base, yamt-nfs-mp-base9, yamt-nfs-mp-base8, yamt-nfs-mp-base11, yamt-nfs-mp-base10, uebayasi-xip-base4, uebayasi-xip-base3, uebayasi-xip-base2, uebayasi-xip-base1, uebayasi-xip-base, uebayasi-xip, rmind-uvmplock-nbase, rmind-uvmplock-base, rmind-uvmplock, netbsd-6-base, netbsd-6-1-RELEASE, netbsd-6-1-RC4, netbsd-6-1-RC3, netbsd-6-1-RC2, netbsd-6-1-RC1, netbsd-6-1-5-RELEASE, netbsd-6-1-4-RELEASE, netbsd-6-1-3-RELEASE, netbsd-6-1-2-RELEASE, netbsd-6-1-1-RELEASE, netbsd-6-1, netbsd-6-0-RELEASE, netbsd-6-0-RC2, netbsd-6-0-RC1, netbsd-6-0-6-RELEASE, netbsd-6-0-5-RELEASE, netbsd-6-0-4-RELEASE, netbsd-6-0-3-RELEASE, netbsd-6-0-2-RELEASE, netbsd-6-0-1-RELEASE, netbsd-6-0, matt-premerge-20091211, matt-nb6-plus-nbase, matt-nb6-plus-base, matt-nb6-plus, matt-mips64-premerge-20101231, jym-xensuspend-nbase, jruoho-x86intr-base, jruoho-x86intr, jmcneill-usbmp-pre-base2, jmcneill-usbmp-base9, jmcneill-usbmp-base8, jmcneill-usbmp-base7, jmcneill-usbmp-base6, jmcneill-usbmp-base5, jmcneill-usbmp-base4, jmcneill-usbmp-base3, jmcneill-usbmp-base2, jmcneill-usbmp-base10, jmcneill-usbmp-base, jmcneill-usbmp, jmcneill-audiomp3-base, jmcneill-audiomp3, cherry-xenmp-base, cherry-xenmp, bouyer-quota2-nbase, bouyer-quota2-base, bouyer-quota2
Branch point for: yamt-pagecache, tls-maxphys, netbsd-6
Changes since 1.9: +8 -1 lines
Diff to previous 1.9 (colored) to selected 1.21 (colored)

Back out previous change: do not skip the test on rootspec, but make it
a simple attempt instead of an authoritative answer. The failure of the
rootspec test could me machine-dependant. Thanks to martin@ for pointing
that out.

Revision 1.9 / (download) - annotate - [select for diffs], Fri Aug 21 09:20:47 2009 UTC (10 years, 3 months ago) by manu
Branch: MAIN
Changes since 1.8: +3 -7 lines
Diff to previous 1.8 (colored) to selected 1.21 (colored)

When netbooting, rootspec is now "md0a", and it has no chance to match
an interface name, so do not give it a try.

Revision 1.8 / (download) - annotate - [select for diffs], Wed Mar 18 16:00:21 2009 UTC (10 years, 8 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-nfs-mp-base7, yamt-nfs-mp-base6, yamt-nfs-mp-base5, yamt-nfs-mp-base4, yamt-nfs-mp-base3, nick-hppapmap-base4, nick-hppapmap-base3, nick-hppapmap-base, jymxensuspend-base, jym-xensuspend-base
Changes since 1.7: +3 -3 lines
Diff to previous 1.7 (colored) to selected 1.21 (colored)

bzero -> memset

Revision 1.7 / (download) - annotate - [select for diffs], Sat Mar 14 15:36:22 2009 UTC (10 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.6: +5 -10 lines
Diff to previous 1.6 (colored) to selected 1.21 (colored)

Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)

Revision 1.6 / (download) - annotate - [select for diffs], Sat Mar 14 14:46:09 2009 UTC (10 years, 9 months ago) by dsl
Branch: MAIN
Changes since 1.5: +3 -3 lines
Diff to previous 1.5 (colored) to selected 1.21 (colored)

Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.

Revision 1.5 / (download) - annotate - [select for diffs], Thu Apr 24 11:38:36 2008 UTC (11 years, 7 months ago) by ad
Branch: MAIN
CVS Tags: yamt-pf42-base4, yamt-pf42-base3, yamt-pf42-base2, yamt-nfs-mp-base2, yamt-nfs-mp-base, wrstuden-revivesa-base-4, wrstuden-revivesa-base-3, wrstuden-revivesa-base-2, wrstuden-revivesa-base-1, wrstuden-revivesa-base, wrstuden-revivesa, simonb-wapbl-nbase, simonb-wapbl-base, simonb-wapbl, nick-hppapmap-base2, netbsd-5-base, netbsd-5-0-RELEASE, netbsd-5-0-RC4, netbsd-5-0-RC3, netbsd-5-0-RC2, netbsd-5-0-RC1, netbsd-5-0-2-RELEASE, netbsd-5-0-1-RELEASE, netbsd-5-0, mjf-devfs2-base, matt-nb5-mips64-u2-k2-k4-k7-k8-k9, matt-nb5-mips64-u1-k1-k5, matt-nb5-mips64-premerge-20091211, matt-nb4-mips64-k7-u2a-k9b, matt-mips64-base2, hpcarm-cleanup-nbase, haad-nbase2, haad-dm-base2, haad-dm-base1, haad-dm-base, haad-dm, ad-audiomp2-base, ad-audiomp2
Branch point for: yamt-nfs-mp, nick-hppapmap, netbsd-5, matt-nb5-mips64, jym-xensuspend
Changes since 1.4: +3 -3 lines
Diff to previous 1.4 (colored) to selected 1.21 (colored)

Merge the socket locking patch:

- Socket layer becomes MP safe.
- Unix protocols become MP safe.
- Allows protocol processing interrupts to safely block on locks.
- Fixes a number of race conditions.

With much feedback from matt@ and plunky@.

Revision 1.4 / (download) - annotate - [select for diffs], Fri Apr 4 20:13:18 2008 UTC (11 years, 8 months ago) by cegger
Branch: MAIN
CVS Tags: yamt-pf42-baseX, yamt-pf42-base
Branch point for: yamt-pf42
Changes since 1.3: +3 -3 lines
Diff to previous 1.3 (colored) to selected 1.21 (colored)

use device_xname() where appropriate
OK martin

Revision 1.3 / (download) - annotate - [select for diffs], Tue Feb 12 17:30:59 2008 UTC (11 years, 10 months ago) by joerg
Branch: MAIN
CVS Tags: yamt-lazymbuf-base15, yamt-lazymbuf-base14, nick-net80211-sync-base, nick-net80211-sync, mjf-devfs-base, matt-armv6-nbase, keiichi-mipv6-nbase, keiichi-mipv6-base, keiichi-mipv6, hpcarm-cleanup-base, ad-socklock-base1
Branch point for: mjf-devfs2
Changes since 1.2: +3 -6 lines
Diff to previous 1.2 (colored) to selected 1.21 (colored)

Introduce device_find_by_xname and device_find_by_driver_unit to replace
alldevs iterations all over src.

Patch discussed with and improved on suggestioned from cube@.

Revision 1.2 / (download) - annotate - [select for diffs], Wed Jan 2 19:26:45 2008 UTC (11 years, 11 months ago) by yamt
Branch: MAIN
CVS Tags: matt-armv6-base, bouyer-xeni386-nbase, bouyer-xeni386-base
Changes since 1.1: +5 -6 lines
Diff to previous 1.1 (colored) to selected 1.21 (colored)

use kmem_alloc instead of malloc.

Revision 1.1 / (download) - annotate - [select for diffs], Tue May 8 06:10:27 2007 UTC (12 years, 7 months ago) by manu
Branch: MAIN
CVS Tags: yamt-x86pmap-base4, yamt-x86pmap-base3, yamt-x86pmap-base2, yamt-x86pmap-base, yamt-x86pmap, yamt-kmem-base3, yamt-kmem-base2, yamt-kmem-base, yamt-kmem, yamt-idlelwp-base8, vmlocking2-base3, vmlocking2-base2, vmlocking2-base1, vmlocking2, vmlocking-nbase, vmlocking-base, reinoud-bufcleanup-nbase, reinoud-bufcleanup-base, nick-csl-alignment-base5, nick-csl-alignment-base, nick-csl-alignment, mjf-ufs-trans-base, matt-mips64-base, matt-mips64, matt-armv6-prevmlocking, jmcneill-pm-base, jmcneill-pm, jmcneill-base, hpcarm-cleanup, cube-autoconf-base, cube-autoconf, bouyer-xenamd64-base2, bouyer-xenamd64-base, bouyer-xenamd64
Branch point for: yamt-lazymbuf, yamt-idlelwp, vmlocking, netbsd-4, mjf-ufs-trans, mjf-devfs, matt-armv6, bouyer-xeni386
Diff to selected 1.21 (colored)

Add the TFTPROOT kernel option for TFTP'ing root RAMdisk at root mount time.
This allows working around situations where a kernel with embedded RAMdisk
cannot be booted by the bootloader because the RAMdisk is too big.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.




CVSweb <webmaster@jp.NetBSD.org>