summaryrefslogtreecommitdiffstats
path: root/sys/ntfs (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* More of the same: ntfs doesn't do inode numbers >2^32, so use a smaller typeguenther2013-05-308-19/+27
| | | | internally, only using ino_t in the VFS layer APIs: vget, readdir, getattr
* Add an f_mntfromspec member to struct statfs, which specifies the name ofjsing2013-04-151-4/+9
| | | | | | | | | | | | | the special provided when the mount was requested. This may be the same as the special that was actually used for the mount (e.g. in the case of a device node) or it may be different (e.g. in the case of a DUID). Whilst here, change f_ctime to a 64 bit type and remove the pointless f_spare members. Compatibility goo courtesy of guenther@ ok krw@ millert@
* Handle the pathconf _PC_PATH_MAX, _PC_PIPE_BUF, _PC_ASYNC_IO,guenther2013-03-281-4/+1
| | | | | | | | | | | _PC_PRIO_IO, and _PC_SYNC_IO names in VOP_PATHCONF(), as they're fs-independent for us. Since we don't support latter three on any fs, we can also define the related _POSIX_{ASYNC,PRIO,SYNC}_IO symbols in <unistd.h> (via sys/unistd.h) with value -1. Also, zap pointless tty-only values from procfs(!). ok beck@, deraadt@
* Add _KERNEL guard to hide dprintf macro from userland.brad2013-01-251-1/+3
| | | | ok millert@
* Constrain the amount of kernel memory used by NTFS. Keep a small cache ofjsing2013-01-184-14/+63
| | | | | | | | | | loaded ntnodes and once the maximum is reached, unload the least recently used ntnode before loading a new one. This avoids leaving large data structures hanging around, which only get cleaned up when the vnode is reclaimed. Additionally, the buffer cache should contain the data needed to reload the ntnode. ok beck@
* Free the directory block buffer at the completion of a readdir,jsing2013-01-141-2/+6
| | | | | | | | | significantly reducing NTFS kernel memory usage. Without this the buffer is not usually freed until the vnode is reclaimed. Tested by Sebastian Neuper. ok beck@ krw@
* Ansify and apply style(9) to function definitions.jsing2013-01-144-259/+89
| | | | ok krw@
* Destatic.jsing2013-01-133-66/+61
| | | | ok krw@
* Correct error handling in two hard to hit ENOTDIR error cases. These wouldjsing2013-01-031-10/+15
| | | | | | previously leave the ntnode locked and neglect to decrement the use count. ok krw@ miod@
* Ensure that a directory link count is always 1 so that things likejsing2013-01-031-1/+11
| | | | | | | | | | fts_read() do not try to be smart and end up skipping over directories. Additionally, ip->i_nlink will not be initialised until the ntnode has been loaded for the file. Makes find(1) behave predictably on a mounted NTFS file system. ok miod@
* Remove code that is not used on OpenBSD.jsing2013-01-023-39/+3
| | | | ok miod@ krw@
* Cleanup VFS mount string handling:jsing2012-09-101-15/+8
| | | | | | | | | | | - Avoid using copyinstr() without checking the return value. - sys_mount() has already copied the path in, so pass this to the filesystem mount code so that it does not have to copy it in again. - Avoid copyinstr()/bzero() dance when we can simply bzero() and strlcpy(). ok krw@
* Cleanup our filesystem pathconf() code a little bit to make it easiermatthew2012-06-201-8/+11
| | | | | | to diff against FreeBSD's. From Brad; no object file change on amd64.
* respect the MNT_FORCE flag in ntfs_unmount and proceed even if there'smikeb2011-12-202-7/+9
| | | | | | | someone holding a system vnode. prevents crashes with forced unmounts. silence ntfs_reclaim so that kernel won't spit out vprint's angrily. ok krw, beck
* move the specfs code to a place people can see it; ok guenther thib krwderaadt2011-07-043-9/+6
|
* bread does nothing with its ucred argument. remove it. ok matthewtedu2011-07-042-8/+7
|
* Every single vop_default is set to eopnotsupp, so retire itthib2011-04-051-2/+1
| | | | | | | | and return EOPNOTSUPP directly from the VOP_* functions. Filesystems should, at some point fill in every function in the vop_default struct so we can get rid of the 'if' statements in VOP_*.
* Teach ntfs_mount() how to handle disklabel UIDs.jsing2011-04-031-5/+16
| | | | Diff from Antti Harri.
* Bring back the "End the VOP experiment." diff, naddy's issues wherethib2010-12-213-101/+68
| | | | | | unrelated, and his alpha is much happier now. OK deraadt@
* Make sure readdir cookies are actually allocated with the correct sizemiod2010-11-181-3/+3
| | | | | | (in case eventually we change their type from u_long to something else), and do not truncate them to 32 bits in the ntfs code. ok tedu@
* Backout the VOP diff until the issues naddy was seeing on alpha (gcc3)thib2010-09-103-68/+101
| | | | have been resolved.
* nessesary -> necessary.miod2010-09-091-2/+2
|
* Allow NTFS to compile by cutting it over to the new VOP world order.thib2010-09-073-101/+68
| | | | | | Small cleanup while here, nuke the ntfs_bypass function and just use eopnotsupp like every other filesystem, it makes no sense to return ENOTTY for unimplemented VOPs.
* revert previous "simplification". kcornies at gmail says it doesn't work.tedu2010-09-044-24/+91
|
* the upper case table code was a lot more complicated than it needed to be.tedu2010-08-224-91/+24
|
* these files don't need to include nearly so many headerstedu2010-08-122-45/+22
|
* clean up some macro obfuscation and assorted styling problems.tedu2010-08-125-47/+37
| | | | fix a bonus off by one bug. ok matthew
* do not unlock vnode before calling vput. should fix ray's panic.tedu2010-08-081-2/+1
| | | | ok deraadt krw
* Every time you ignore uiomove() return value, $DEITY kills a littlemiod2010-08-061-14/+28
| | | | | | $ADORABLE_FELINE. ok deraadt@ matthew@
* Last bit of thib@ locking diff from long ago. Put proper lockingkrw2010-07-031-4/+6
| | | | | | around vinvalbuf(). vrele() -> vput() after VOP_CLOSE(). ok tedu@
* keeping a TODO file here implies somebody carestedu2010-06-291-38/+0
|
* makefstype was only used in ported from freebsd filesystems. fix themtedu2010-06-291-2/+2
| | | | and remove the function. ok thib
* simething -> somethingmiod2010-06-061-2/+2
|
* It is about time that we stopped pretending simple_locks are locks.oga2010-04-231-12/+7
| | | | | | | | | | | replace ntfs_nthash_slock usage with comments prefixed XXXLOCKING (for grepability). This lock looks to be correct, but it could well be the bad way to do it (having a rwlock for inserts to avoid races inserting the same inode but then simple locking on list accesses). approach discussed with deraadt@
* remove proc.h include from uvm_map.h. This has far reaching effects, astedu2010-04-201-4/+1
| | | | | | sysctl.h was reliant on this particular include, and many drivers included sysctl.h unnecessarily. remove sysctl.h or add proc.h as needed. ok deraadt
* - properly spell 'exception' in commentsjasper2010-03-011-2/+2
| | | | - properly spell 'usefulness'
* - remove super-obvious comments from vnodeop_entries[]jasper2009-08-139-785/+17
| | | | | | - remove #ifdef someos blocks, makes this a tad easier to read agreed by art@ and thib@
* Remove the VREF() macro and replaces all instances with a call to verf(),thib2009-07-093-7/+7
| | | | | | | | | | | which is exactly what the macro does. Macro's that are nothing more then: #define FUNCTION(arg) function(arg) are almost always pointless and should go away. OK blambert@ Agreed by many.
* - make sure biodone() gets run at IPL_BIOjasper2009-06-021-2/+4
| | | | OK thib@
* convert lockmgr over to rwlock in ntfs, mostly trivial.oga2009-03-255-22/+20
| | | | Tested by a couple of people, no regressions.
* Avoid #pragma pack(1) and unify everything towards using __packed.deraadt2008-09-011-19/+16
| | | | | | | This requires that structures defined within __packed structures must independently request that they themselves become __packed, too. worked on with toby CVS: ----------------------------------------------------------------------
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-8/+1
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* Remove commented out NetBSD __KERNEL_RCSID macro usage.brad2008-05-136-36/+6
| | | | ok dlg@
* MALLOC/FREE -> malloc/freehshoexer2007-12-092-22/+21
| | | | ok gilles
* Oops. Forgot to do FREE -> free when I did MALLOC -> malloc.krw2007-10-061-5/+5
|
* MALLOC+bzero -> malloc+M_ZERO.krw2007-10-031-9/+4
| | | | | | | | In ip_esp.c all allocated memory is now zero'd in the "malloc(sizeof(*tc) + alen ..." case. The +alen memory was not initialized by the bzero() call. Noticed by chl@. "Looks good" art@ "seems ok" chl@
* Only the most obvious bzero() -> M_ZERO changes. No cast changes, nokrw2007-09-171-3/+2
| | | | | MALLOC/FREE, etc. Just adding M_ZERO to malloc() and deleting an immediately adjacent bzero().
* do the daddr_t -> daddr64_t or int32_t dance here as wellderaadt2007-06-022-8/+6
| | | | "this code sucks -- pedro", "just put it in -- tom".
* more vop argument "ap = v" comment removal; ok pedroderaadt2007-06-011-89/+17
|
* Remove the i_interlock simplelock from struct ntnodethib2007-04-122-12/+4
|