summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
...
* Conventionally, tar archives have always included a trailing '/'kientzle2007-04-145-74/+261
| | | | | | | | | | | | | for directories. bsdtar used to add this, but that recently got lost somehow. So now I'm adding it back in libarchive. The only odd part of doing this in libarchive: Adding a directory to a tar archive and then reading it back again can yield a different name. Add a test case to exercise some boundary conditions with tar filenames and ensure that trailing slashes are added to dir names only as necessary. Thanks to: Oliver Lehmann for bringing this regression to my attention.
* Portability: Don't use mkdtemp() when mkdir() will suffice.kientzle2007-04-141-2/+2
| | | | If we can't create the dir, just give up.
* More portability improvements from Martin Koeppe:kientzle2007-04-143-11/+75
| | | | | | conditionally use utime() when utimes() is not available; allow the most common wide-char functions to be replaced when local alternatives are lacking.
* In member interface detach event handler, do not attempt to free statebms2007-04-141-1/+9
| | | | | | | | which has already been freed by in_ifdetach(). With this cumulative change, the removal of a member interface will not cause a panic in pfsync(4). Requested by: yar PR: 86848
* Fix jails and jail-friendly file systems handling:pjd2007-04-133-5/+25
| | | | | | | | - We need to allow for PRIV_VFS_MOUNT_OWNER inside a jail. - Move security checks to vfs_suser() and deny unmounting and updating for jailed root from different jails, etc. OK'ed by: rwatson
* Align -p output in TAB built columns suitable for /etc/fstab.phk2007-04-131-2/+19
|
* Fix overflow, which was causing endless loops when 32bit machine had morepjd2007-04-134-6/+6
| | | | | | | | | | than 2GB of RAM. This was because our physmem is long and 'physmem*PAGESIZE' can be negative for more than 2GB of memory. Reported by: Andrey V. Elsukov <bu7cher@yandex.ru> It is not yet tested by Andrey, so there can be other problems, but this was definiately a bug, so I'm committing a fix now.
* Remove the shutdown keyword. It just adds noise to the shutdown process.des2007-04-131-1/+1
|
* o Extend the list of supported CDMA-2000 terminals.maxim2007-04-131-2/+2
| | | | | Submitted by: R.Mahmatkhanov MFC after: 10 days
* Portability.kientzle2007-04-131-0/+2
| | | | Thanks to: Martin Koeppe for testing on Interix
* Eliminate the misuse of PG_FRAME to truncate a virtual address to a virtualalc2007-04-132-4/+4
| | | | | | page boundary. Reviewed by: ru@
* Portability.kientzle2007-04-131-0/+2
|
* The minimum size of an RFC3442 destination descriptor is five bytes, soemaste2007-04-131-1/+1
| | | | | | | correct test to -ge 5. Without this change an RFC3442 encoded default route would be ignored. Reported by: Cedric Jonas <cedric at decemplex dot net>
* Fix the handling of IPv6 addresses for subject and process BSM auditcsjp2007-04-138-34/+105
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | tokens. Currently, we do not support the set{get}audit_addr(2) system calls which allows processes like sshd to set extended or ip6 information for subject tokens. The approach that was taken was to change the process audit state slightly to use an extended terminal ID in the kernel. This allows us to store both IPv4 IPv6 addresses. In the case that an IPv4 address is in use, we convert the terminal ID from an struct auditinfo_addr to a struct auditinfo. If getaudit(2) is called when the subject is bound to an ip6 address, we return E2BIG. - Change the internal audit record to store an extended terminal ID - Introduce ARG_TERMID_ADDR - Change the kaudit <-> BSM conversion process so that we are using the appropriate subject token. If the address associated with the subject is IPv4, we use the standard subject32 token. If the subject has an IPv6 address associated with them, we use an extended subject32 token. - Fix a couple of endian issues where we do a couple of byte swaps when we shouldn't be. IP addresses are already in the correct byte order, so reading the ip6 address 4 bytes at a time and swapping them results in in-correct address data. It should be noted that the same issue was found in the openbsm library and it has been changed there too on the vendor branch - Change A_GETPINFO to use the appropriate structures - Implement A_GETPINFO_ADDR which basically does what A_GETPINFO does, but can also handle ip6 addresses - Adjust get{set}audit(2) syscalls to convert the data auditinfo <-> auditinfo_addr - Fully implement set{get}audit_addr(2) NOTE: This adds the ability for processes to correctly set extended subject information. The appropriate userspace utilities still need to be updated. MFC after: 1 month Reviewed by: rwatson Obtained from: TrustedBSD
* Pav and marcus co-mentored me for a few weeks while adamw was busy in schoolahze2007-04-131-0/+2
|
* - Create an empty /etc/zfs/exports file when zfs_enable="YES" and we don'tpjd2007-04-131-2/+5
| | | | | | | | | | NFS-share anything. This way we can safely start mountd with /etc/zfs/exports and mountd won't complain. Pointed out by: ceri - Move 'zfs volinit' before 'zfs mount -a' and 'zfs volfini' after 'zfs unmount -a'.
* mountd(8) was changed to only abort when all given exports files cannot bepjd2007-04-131-1/+1
| | | | open, so we not longer has to check if /etc/zfs/exports exists.
* Fatal error is only when cannot open any of the given exports files.pjd2007-04-131-2/+9
|
* Fix vnodes starvation caused by DNLC (ZFS name cache):pjd2007-04-132-2/+40
| | | | | | | | - Tune number of namecache entires better (based on desiredvnodes). - Handle vfs_lowvnodes event by releasing requested number of name cache entries, but no less than 5%. Reported by: simokawa
* When we are running low on vnodes, there is currently no way to ask otherpjd2007-04-132-0/+5
| | | | | subsystems to release some vnodes. Implement backpressure based on vfs_lowvnodes event (similar to vm_lowmem for memory).
* o Look for a zfs(1) exports file only if it exists and is readable. Ifmtm2007-04-131-1/+2
| | | | | we don't do this and the file doesn't exist mountd(8) will abort. o The mountd(8) daemon creates a pidfile, so use it.
* Install only types.h from sys/rpc/.pjd2007-04-131-1/+9
| | | | | Requested by: ache Explained how by: ru
* MFp4: Synchronize with vendor (mostly 'zfs rename -r').pjd2007-04-1226-270/+860
|
* MFp4: Bring back comments.pjd2007-04-124-358/+358
| | | | Requested by: jhb
* Found the right date for davidxujulian2007-04-121-1/+1
|
* Add myself and some others according to my dusty memory.julian2007-04-121-0/+6
| | | | I may have other mentees that I have forgotten...
* Add myself and glebius.mav2007-04-121-0/+6
| | | | Approved by: glebius (mentor)
* In .error and .warning, prefer command-line variablesru2007-04-121-1/+1
| | | | | | to globals, as per documentation. Nudged by: Jeremie Le Hen
* -) Correct sdcount for a plex when removing or adding subdisks.le2007-04-123-3/+93
| | | | | | -) Set correct sizes for plexes and volumes a subdisk has been removed. Submitted by: Ulf Lilleengen <lulf_AT_freebsd.org>
* Avoid infinite loop if the device string given for a drivele2007-04-121-6/+3
| | | | | | only consists of "/". Submitted by: Ulf Lilleengen <lulf_AT_freebsd.org>
* MFamd64alc2007-04-121-0/+1
| | | | Define PGEX_RSV.
* Add myself and my mentor, arved.stefan2007-04-121-0/+4
|
* Mergeache2007-04-122-0/+13
|
* Nuke ipblock. A more complete multicast regression test suite is on the way.bms2007-04-122-231/+0
|
* Fix PAE on SMP by enabling EFER_NXE on all APs.ru2007-04-121-0/+10
| | | | | Reported by: kris Diagnosed by: alc
* Fix a bug in the description of the "p6-div" event. [1]jkoshy2007-04-121-2/+4
| | | | | | | | Update the description of the "p6-div" and "p6-mul" events according to the "Intel(r) 64 and IA-32 Architectures Software Developers Manual Volume 3B: System Programming Guide, Part 2, November 2006". Reported by: Harald Servat <redcrash at gmail dot com> [1]
* Bump .Dd for r1.5; fix grammatical problem.ceri2007-04-121-2/+2
|
* Specify the correct way to modify this file, and warn that themtm2007-04-121-1/+18
| | | | | | | user should not depend on the internal variables documented in this man page. MFC After: 2 weeks
* Restore the ".Sh BUGS" line that was accidentally removedru2007-04-121-0/+1
| | | | in the previous commit.
* There are a couple of bugs in rev. 1.27:mtm2007-04-121-7/+2
| | | | | | | | | | | | | | | | | | | 1) The man page should describe the code, not the other way around. 2) Internal variables should not be documented or exposed, except in controlled circumstances (i.e. - That's what the -C flag is for). The variable should have been saved to the config file in save_config(). 3) The next available userid doesn't get automatically updated. The end-result is the same (user gets added with the correct uid), but in an interactive session the default uid doesn't get updated in the display. So, o Use the uidstart variable instead of uuid (bug #3) o Actually save the variable to adduser.conf (bug #2) o (bug #1 to be fixed in an upcomming commit to adduser.conf.5) MFC After: 2 weeks
* Errm... I don't see how rev. 1.26 could have possibly worked or been tested.mtm2007-04-121-12/+13
| | | | | | | Fix it for real. Submitted by: Johnny Lee <johnny@bmtk.com> MFC After: 2 weeks
* restore sense to get_imm_packetkmacy2007-04-121-6/+4
| | | | MFC after: 3 days
* Make it easier to support more platforms.kientzle2007-04-122-8/+7
| | | | Thanks to: Joerg Sonnenberger for pointing out the need and the technique.
* Now that libarchive is being built in more environments,kientzle2007-04-122-8/+6
| | | | | | factor out the platform-specific configuration header a bit more cleanly. Suggested by: Joerg Sonnenberger
* Make Lint happier.kientzle2007-04-122-2/+3
|
* switch over to per-txq dma tag to facilitate parallelism on TXkmacy2007-04-121-12/+12
| | | | MFC after: 3 days
* explicitly check TSO flagkmacy2007-04-121-12/+8
| | | | | | | don't clear and then set M_PKTHDR, m_gethdr sets it correctly improve error handling on m_gethdr failure MFC after: 3 days
* Add ETHER_HDR_LEN to hardware accepted mtukmacy2007-04-121-3/+3
| | | | MFC after: 3 days
* - Fix compilaton with DUMP_FILELOCK_VERBOSE.kuriyama2007-04-121-8/+8
| | | | | - Use consistent "get_lock_matching_unlock" function name in debuglog().
* Fix a case where the multicast addresses were not removed from some ports. Thethompsa2007-04-121-32/+49
| | | | | first port to be removed from the trunk would free the multicast list so subsequent removed ports didnt have their multicast addresses removed.
OpenPOWER on IntegriCloud