summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Make OK_TO_WRITE_TO_DISK an envrionment variable insteadeadler2012-11-042-46/+44
| | | | | | | | | | of a compile time option. While here, don't differ based on the existence of LOCK_EX which doesn't seem to have ever made a difference on FreeBSD. Approved by: cperciva (from discussion) MFC after: 3 days
* Prefer the use of stdbool to custom defines.eadler2012-11-041-3/+3
| | | | | Approved by: cperciva (from discussion) MFC after: 3 days
* zfs_dirlook: bailout early if directory is unlinkedavg2012-11-041-0/+14
| | | | | | | | | | Otherwise we could fail with an incorrect error if e.g. parent object id is removed too or we can even return a wrong vnode if parent object has been already re-used. Discussed with: pjd Also see: http://article.gmane.org/gmane.os.freebsd.devel.file-systems/13863 MFC after: 26 days
* zfsctl_snapdir_lookup: obtain a snapname in the remount caseavg2012-11-041-0/+1
| | | | | | | ... which is triggered if somebody did regular umount on a snapshot mount. Reviewed by: Matthew Ahrens <mahrens@delphix.com> MFC after: 20 days
* zfs: set MNTK_EXTENDED_SHARED flagavg2012-11-041-0/+1
| | | | | Discussed with: kib MFC after: 20 days
* opensolaris compat: clear VI_MOUNT before returning if mount_snapshot failsavg2012-11-041-0/+3
| | | | | | | To do: investigate if it would be possible to use normal vfs_domount here. Reviewed by: kib MFC after: 19 days
* zfs_vnode_forget: dispose of larvae vnode using public vfs api (mostly)avg2012-11-041-5/+4
| | | | | Reviewed by: kib MFC after: 19 days
* zfs_umount: no need to set MNTK_UNMOUNTF here, dounmount handles thatavg2012-11-041-4/+0
| | | | | Reviewed by: kib MFC after: 19 days
* opensolaris_lookup: use vfs_busy in traverse before calling VFS_ROOTavg2012-11-041-0/+4
| | | | | | | ... to ensure that we have a valid mountpoint during the call. Reviewed by: kib MFC after: 19 days
* zfs_vnode_lock: no need to double-guess caller's intentions hereavg2012-11-041-8/+0
| | | | | | | | vn_lock should do the right thing with respect to given vnode lock flags. If a caller doesn't mind a doomed vnode, then zfs should deliver. Reviewed by: kib MFC after: 19 days
* zfs_mount: drop vfs.zfs.rootpool.prefer_cached_config tunableavg2012-11-041-14/+2
| | | | | | | | | It turned out to be not that useful, because its default value may lead to a problem when a root pool is present in zpool.cache, but its on-disk status is 'exported'. This may happen if the pool was imported in a different environment with -f flag and then exported. MFC after: 12 days
* zfs_freebsd_close: call zfs_close with count=1 instead of count=0avg2012-11-041-1/+1
| | | | | | | Otherwise we may be leaking z_sync_cnt, which may lead to unnecessary ZIL sync-ing. MFC after: 12 days
* cpuctl_do_cpuid: explicitly use ecx=0 for cpuid callavg2012-11-041-1/+1
| | | | | | | | | ... instead of whatever random value may happen to be in the register. ecx is important to some cpuid leaves. To do: extend cpuctl interface to provide for ecx value parameter. MFC after: 5 days
* Add decoding of the missed MNT_KERN_ flags to ddb "show mount" command.kib2012-11-041-0/+5
| | | | MFC after: 3 weeks
* Add decoding of the missed VI_ and VV_ flags to ddb "show vnode" command.kib2012-11-041-3/+9
| | | | MFC after: 3 days
* Order the enumeration of the MNT_ flags to be the same as the order ofkib2012-11-041-2/+2
| | | | | | their definitions. MFC after: 3 days
* New sentence, new line.joel2012-11-041-4/+4
| | | | Submitted by: brueffer
* Add a few basic examples.joel2012-11-041-1/+19
|
* - Add my mentor relationships to committers-ports.dotgblach2012-11-042-0/+4
| | | | | | - Add myself to calendar.freebsd Approved by: tabthorpe (mentor)
* Add an example showing the use of gnop(8) to skip over header data.wblock2012-11-041-1/+13
| | | | | | PR: kern/145999 Reviewed by: mjg MFC after: 1 week
* Change default prompt to show ~ again for the home directorybapt2012-11-042-2/+2
| | | | | Submitted by: flo Approved by: eadler
* Oops - conditionalise that.adrian2012-11-041-0/+2
|
* Fix a bug where operations was carried on even if not implemented,attilio2012-11-031-6/+4
| | | | | | | | leading to handling of an invalid fdip object. Reported and tested by: flo MFC after: 2 months X-MFC: 241519
* Replace all uses of the page queues lock by a R/W lock that is privatealc2012-11-031-34/+40
| | | | | | | | to this pmap. Eliminate two redundant #include's. Tested by: marcel
* Rework the known rwlock to benefit about staying on their ownattilio2012-11-037-63/+7
| | | | | | | cache line in order to avoid manual frobbing but using struct rwlock_padalign. Reviewed by: alc, jimharris
* EDMA TX tweaks:adrian2012-11-031-7/+28
| | | | | | | | | | * don't poke ath_hal_txstart() if nothing was pushed into the FIFO during the refill process; * shuffle around the TX debugging output a little so it's logged at TX hardware enqueue; * Add logging of the TX status processing.
* Merge the FDT versions of initarm.andrew2012-11-037-2487/+491
| | | | | | | | | The copies of initarm used on platforms with FDT support were almost identical. The differences were pulled out into separate functions that were called by initarm. This change merges the, now identical, copies of initarm and a few of it's support functions. This is a step towards a common kernel on ARMv6.
* sh: Use C99 flexible array instead of accessing array beyond bounds.jilles2012-11-031-3/+2
| | | | | | | | Although sufficient memory is available for a longer string in cmdname, this is undefined behaviour anyway. Side effect: for alignment reasons, an additional byte of memory is allocated per hashed command.
* Add tty_set_winsize().ed2012-11-033-37/+24
| | | | | This removes some of the signalling magic from the Syscons driver and puts it in the TTY layer, where it belongs.
* For AR9380 NICs - the non-enterprise versions don't support RTS protectionadrian2012-11-031-2/+10
| | | | | | | | | | of small (< 256 byte) aggregate frames. This needs to be done or 11n aggregation TX just simply doesn't work on these NICs. Whilst here, extend some debug printing; I was using this whilst debugging the TX power setup in the TX descriptor(s) on the AR9380.
* Add a new HAL call to extract out the HAL enterprise bits from theadrian2012-11-032-1/+23
| | | | AR9300 HAL.
* 1. Have the APs initialize the TLB1 entries from what has beenmarcel2012-11-034-58/+89
| | | | | | | | | | | | | | programmed on the BSP during (early) boot. This makes sure that the APs get configured the same as the BSP, irrspective of how FreeBSD was loaded. 2. Make sure to flush the dcache after writing the TLB1 entries to the boot page. The APs aren't part of the coherency domain just yet. 3. Set pmap_bootstrapped after calling pmap_bootstrap(). The FDT code now maps the devices (like OF), and this resulted in a panic. 4. Since we pre-wire the CCSR, make sure not to map chunks of it in pmap_mapdev().
* Add a MD_ROOT_FSTYPE kernel option. The option specifies themarcel2012-11-032-1/+6
| | | | | file system part for the MD_ROOT mount string. Hardcoding the the file system type as "ufs" is too restrictive.
* Add the bus attachment for the embedded EHCI HC.marcel2012-11-031-0/+1
|
* Allow using the embedded EHCI host controller in Freescale SoCsmarcel2012-11-032-6/+12
| | | | by adding the missing bits. See ehci_fsl.c for their use.
* Add the buildLINT convenience target, handy for build automation.marcel2012-11-031-0/+3
| | | | | | | | The automation can set TARGET_ARCH and TARGET and then make various top-level targets, including buildLINT and buildkernel (with KERNCONF=LINT). Previously there was no way to generate the LINT kernel configuration without having to do something exceptionally painful.
* o DragonFly 2.3.1 added.maxim2012-11-031-1/+2
|
* When a file is first being written, the dynamic block reallocationmckusick2012-11-032-2/+75
| | | | | | | | | | | | | | | | | | | | | | (implemented by ffs_reallocblks_ufs[12]) relocates the file's blocks so as to cluster them together into a contiguous set of blocks on the disk. When the cluster crosses the boundary into the first indirect block, the first indirect block is initially allocated in a position immediately following the last direct block. Block reallocation would usually destroy locality by moving the indirect block out of the way to keep the data blocks contiguous. This change compensates for this problem by noting that the first indirect block should be left immediately following the last direct block. It then tries to start a new cluster of contiguous blocks (referenced by the indirect block) immediately following the indirect block. We should also do this for other indirect block boundaries, but it is only important for the first one. Suggested by: Bruce Evans MFC: 2 weeks
* Replace log(3) with flsll(3) for watchdogd(8) and drop libm dependency.delphij2012-11-032-3/+4
| | | | MFC after: 2 weeks
* Merge r242395,242483 from mutex implementation:attilio2012-11-033-43/+155
| | | | | | | | | | | | | | | | | give rwlock(9) the ability to crunch different type of structures, with the only constraint that they have a lock cookie named rw_lock. This name, then, becames reserved from the struct that wants to use the rwlock(9) KPI and other locking primitives cannot reuse it for their members. Namely such structs are the current struct rwlock and the new struct rwlock_padalign. The new structure will define an object which has the same layout of a struct rwlock but will be allocated in areas aligned to the cache line size and will be as big as a cache line. For further details check comments on above mentioned revisions. Reviewed by: jimharris, jeff
* Revert the change that makes less default.eadler2012-11-032-2/+2
| | | | | | | | | | | | | | | | | Since I've committed this I've receieved roughly an equal amount of email thanking me for making this change and asking me to revert it. I've resisted making this change because new users tend to prefer less over more and these users are the least likely to know how to change the PAGER on their own. Requested by: many Objected to: just as many Decision made by: core Approved by: cperciva MFC after: 3 days
* Fix errno in a couple of error cases.tuexen2012-11-031-1/+3
| | | | MFC after: 3 days
* Print a newline after the error message.jh2012-11-031-0/+1
| | | | | PR: bin/168447 Submitted by: Boris Kochergin
* HAL API updates, from the previous couple of HAL commits.adrian2012-11-031-2/+4
|
* HAL API changes!adrian2012-11-033-3/+15
| | | | | | | | * introduce a new HAL API method to pull out the TX status descriptor contents. * Add num_delims to the 11n first aggr method. This isn't used by the driver at the moment so it won't affect anything.
* Add a debug method to dump the EDMA TX status descriptor contents out.adrian2012-11-032-0/+14
| | | | | This requires some HAL API changes to be useful, as there's no way right now to pull out the TX status descriptor contents.
* Sync strlcpy with userland version.delphij2012-11-031-33/+17
| | | | MFC after: 1 month
* Sync strlen with userland implementation.delphij2012-11-031-13/+98
| | | | MFC after: 1 month
* Fix typobapt2012-11-031-1/+1
|
* If no contents keyword is specified, the default for files issjg2012-11-031-0/+47
| | | | | | the named file. Approved by: marcel (mentor)
OpenPOWER on IntegriCloud