summaryrefslogtreecommitdiff
path: root/usr.sbin
AgeCommit message (Collapse)Author
2011-01-06Ugly hack, call session_schedule in the task pdu callback handler.Claudio Jeker
Without this accessing both LU on my iscsi target will lock up because tasks a queued but no longer scheduled. We need a better task scheduler but this allows me to run iogen on both partitions without locking up.
2011-01-06Pass the magic LUN -1 to VSCSI_REQPROBE so that all LU are probedClaudio Jeker
by the midlayer. With help from dlg@
2011-01-06Add minimal LUN handling. Currently only single level LUN addressing isClaudio Jeker
supported because the vscsi ioctl interface is limited to that. Seems to work according to my iscsi target having 2 units per target. OK dlg@
2011-01-05- properly fix pr6009. a different fix was commited as the original patchJasper Lievisse Adriaanse
used atoi(). this fix uses strtonum() instead. from bjorn ketelaars, pr6515. ok henning@
2011-01-04tweak previous;Jason McIntyre
2011-01-04go all the way, put temp pages in /tmpMarc Espie
2011-01-04create tempfile directly under fake, no need to go down.Marc Espie
2011-01-04Implememnt NOP-IN -> NOP-OUT handling. If the NOP-In was issued by theClaudio Jeker
target (itt = 0xffffffff) send back an immediate NOP-Out reusing the NOP-In PDU. This makes my iscsi target happy. Also plug a mem leak on error path which was found by Igor Zinovik.
2011-01-04Cleanup tasks with a NULL callback after queuing the PDU to be sent out.Claudio Jeker
This allows immediate responses (e.g. NOP-out) to be issued with a task instead of very special code. Also set expstatsn on all PDU that carry it.
2011-01-04Reset the resid before issuing the task callback so that the pdu canClaudio Jeker
be reused for sending out a message. This will be used soon for NOP handling.
2011-01-04Print itt, cmdsn and expstatsn as unsigned when printing a PDU.Claudio Jeker
2011-01-04Truncate the scsi sense data to 18 bytes if more data was supplied.Claudio Jeker
dlg@ said it is OK to do that since the additional data is optional. My connection to the iscsi target sending 64byte sense data is now much happier.
2011-01-04When translating a PDU to text strip all trailing \0 but one.Claudio Jeker
Fixes parsing of login responses that had additional padding.
2011-01-04Log the PDU which failed because no task was found.Claudio Jeker
Should help identify the messages that are issued by the target (e.g. NOP).
2011-01-04Add missing session parameter.Claudio Jeker
2011-01-03make it possible to check for a pkgspec by name, without looking at installedMarc Espie
stuff.
2011-01-03redo the object creation in a more straightforward way.Marc Espie
2011-01-03those all need newlinesMarc Espie
2011-01-03unbreak hardlinks, like MLINKS, too.Jasper Lievisse Adriaanse
ok espie@
2011-01-03broke symlinks, noticed by jasper@Marc Espie
2011-01-02add missing newline between @url and @wantlib.Federico G. Schwindt
espie@ ok.
2011-01-02create formatted manpages as temporary files we remove after the fact.Marc Espie
2011-01-02use new convention for methods with empty parameters.Marc Espie
document PrelinkStuffOnly
2011-01-02document optional prepare parameterMarc Espie
2011-01-02tidy things: use ->new more often.Marc Espie
use mkdir directly to be able to report errors in a sane way (as the File::Path interface is prone to change). allow prepare to specify its own destdir (for temp files). use state->system to report more errors. be consistent in destdir error printing.
2011-01-02kill very old idiom, I don't actually want to go thru items directly.Marc Espie
2010-12-31Change <sys/types.h> to <sys/param.h> instead of assuming that somePhilip Guenthe
system header pulls the latter in ok millert@
2010-12-31Add missing #includes instead of assuming that some system header pulls inPhilip Guenthe
the needed bits ok deraadt@, millert@
2010-12-29more stuff that uses print directly diesMarc Espie
2010-12-24pass state around.Marc Espie
2010-12-24move the handling of ldconfig to AddDelete::StateMarc Espie
actually simplifies code a great deal. It's not as if trying to avoid loading ten lines of code is a good idea.
2010-12-24handle failures from ports tree with more care.Marc Espie
this does avoid infinite loops in case of wrong plists. necessary since print-plist-with-depends CAN fail...
2010-12-23Increase the DATA limit in the RDE to the max value and do the sameClaudio Jeker
for NOFILE in the session engine. OK henning, sthen@
2010-12-23Use the provided note() and warning() functions of dhcpd instead ofClaudio Jeker
calling syslog_r() directly -- this make -d work as expected. OK reyk@, stsp@, deraadt@
2010-12-22simplify some more: if it's not installed, ask the ports tree, who knows,Marc Espie
we will catch more mismatches between spec and actual packagenames ? set status during dependency check don't check when simply printing the plist, this 'fixes' a bit of port-lib-depends-check don't fatal(), error() allows for more stuff to show up
2010-12-22once we read the list, make sure it matches the dependency.Marc Espie
Otherwise, this WILL turn into an infinite loop indeed !
2010-12-21parent_exit() signal handler must use _exit() not exit()Theo de Raadt
2010-12-21fix, as noticed by dcoppa@Marc Espie
2010-12-21simplify a bit:Marc Espie
- make find_dep_in_installed more regular - zap the {more} entry, add_dep is okay for that purpose - don't special case installed_list, provide older_names instead - make PseudoSets slightly less hackish - don't read full packinglist, prelinkstuff is exactly what we need
2010-12-20use a better strategy: ask the ports tree for the plist for packages withMarc Espie
the same pkgpath. Thus, PseudoSets need to have a real list, and pkgcreate needs to loop to solve those depends. reactivate the check
2010-12-20Only set SO_REUSEPORT for listening ports.David Hill
Fixes "Address already in use" errors seen on high load. OK reyk@ pyr@
2010-12-20missed someMarc Espie
2010-12-20disable temporarilyMarc Espie
2010-12-20new check in pkg_create: walk the dependency tree for @wantlib, thusMarc Espie
preventing packages that won't install (much easier to fix that when you still have the fake tree around !) specifically, look into depend that are installed, and possibly in the fake tree: if the package does build, it requires the libraries to be around anyways, so pure RUN_DEPENDS are not an issue (and avoid old libraries, if we find wantlib only in .lib, something really fishy is going on). Reuse the Dependencies class, so we're sure to have the exact same way to find libraries. Also fix exit codes from pkg_create...
2010-12-20prepare for reuse in pkgcreate: allow not finding stuff and not failingMarc Espie
also mark as known a special package known as BUILD
2010-12-20split solver class into a base that can be reused from pkgcreate.Marc Espie
2010-12-20more refactor: errsay_libraryMarc Espie
2010-12-20more refactor: method for global_cache, add find_in_installed, separateMarc Espie
cache handling from the rest for solve_dependency
2010-12-20move stuff aroundMarc Espie
2010-12-20use Auto::cacheMarc Espie