summaryrefslogtreecommitdiff
path: root/sys/ntfs
AgeCommit message (Collapse)Author
2011-04-05Every single vop_default is set to eopnotsupp, so retire itThordur I. Bjornsson
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_*.
2011-04-03Teach ntfs_mount() how to handle disklabel UIDs.Joel Sing
Diff from Antti Harri.
2010-12-21Bring back the "End the VOP experiment." diff, naddy's issues whereThordur I. Bjornsson
unrelated, and his alpha is much happier now. OK deraadt@
2010-11-18Make sure readdir cookies are actually allocated with the correct sizeMiod Vallat
(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@
2010-09-10Backout the VOP diff until the issues naddy was seeing on alpha (gcc3)Thordur I. Bjornsson
have been resolved.
2010-09-09nessesary -> necessary.Miod Vallat
2010-09-07Allow NTFS to compile by cutting it over to the new VOP world order.Thordur I. Bjornsson
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.
2010-09-04revert previous "simplification". kcornies at gmail says it doesn't work.Ted Unangst
2010-08-22the upper case table code was a lot more complicated than it needed to be.Ted Unangst
2010-08-12these files don't need to include nearly so many headersTed Unangst
2010-08-12clean up some macro obfuscation and assorted styling problems.Ted Unangst
fix a bonus off by one bug. ok matthew
2010-08-08do not unlock vnode before calling vput. should fix ray's panic.Ted Unangst
ok deraadt krw
2010-08-06Every time you ignore uiomove() return value, $DEITY kills a littleMiod Vallat
$ADORABLE_FELINE. ok deraadt@ matthew@
2010-07-03Last bit of thib@ locking diff from long ago. Put proper lockingKenneth R Westerback
around vinvalbuf(). vrele() -> vput() after VOP_CLOSE(). ok tedu@
2010-06-29keeping a TODO file here implies somebody caresTed Unangst
2010-06-29makefstype was only used in ported from freebsd filesystems. fix themTed Unangst
and remove the function. ok thib
2010-06-06simething -> somethingMiod Vallat
2010-04-23It is about time that we stopped pretending simple_locks are locks.Owain Ainsworth
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@
2010-04-20remove proc.h include from uvm_map.h. This has far reaching effects, asTed Unangst
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
2010-03-01- properly spell 'exception' in commentsJasper Lievisse Adriaanse
- properly spell 'usefulness'
2009-08-13- remove super-obvious comments from vnodeop_entries[]Jasper Lievisse Adriaanse
- remove #ifdef someos blocks, makes this a tad easier to read agreed by art@ and thib@
2009-07-09Remove the VREF() macro and replaces all instances with a call to verf(),Thordur I. Bjornsson
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.
2009-06-02- make sure biodone() gets run at IPL_BIOJasper Lievisse Adriaanse
OK thib@
2009-03-25convert lockmgr over to rwlock in ntfs, mostly trivial.Owain Ainsworth
Tested by a couple of people, no regressions.
2008-09-01Avoid #pragma pack(1) and unify everything towards using __packed.Theo de Raadt
This requires that structures defined within __packed structures must independently request that they themselves become __packed, too. worked on with toby CVS: ----------------------------------------------------------------------
2008-06-26First pass at removing clauses 3 and 4 from NetBSD licenses.Ray Lai
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@
2008-05-13Remove commented out NetBSD __KERNEL_RCSID macro usage.Brad Smith
ok dlg@
2007-12-09MALLOC/FREE -> malloc/freeHans-Joerg Hoexer
ok gilles
2007-10-06Oops. Forgot to do FREE -> free when I did MALLOC -> malloc.Kenneth R Westerback
2007-10-03MALLOC+bzero -> malloc+M_ZERO.Kenneth R Westerback
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@
2007-09-17Only the most obvious bzero() -> M_ZERO changes. No cast changes, noKenneth R Westerback
MALLOC/FREE, etc. Just adding M_ZERO to malloc() and deleting an immediately adjacent bzero().
2007-06-02do the daddr_t -> daddr64_t or int32_t dance here as wellTheo de Raadt
"this code sucks -- pedro", "just put it in -- tom".
2007-06-01more vop argument "ap = v" comment removal; ok pedroTheo de Raadt
2007-04-12Remove the i_interlock simplelock from struct ntnodeThordur I. Bjornsson
2007-02-11Remove _KERNEL_OPT leftovers.Miod Vallat
2006-05-29Remove unused NetBSD new-style %b strings.Miod Vallat
2006-04-19Remove unused mount list simple_lock() gooPedro Martelletto
2006-03-05Use more queue macros rather than doing it by hand; ok otto@ krw@Miod Vallat
2006-01-13sysinst my ass.Miod Vallat
2006-01-09Put vprint() under DIAGNOSTIC, as to save space in generated ramdisks.Pedro Martelletto
Inspiration from miod@, okay deraadt@. Tested on i386, macppc and amd64.
2005-11-19Remove unnecessary lockmgr() archaism that was costing too much in termsPedro Martelletto
of panics and bugfixes. Access curproc directly, do not expect a process pointer as an argument. Should fix many "process context required" bugs. Incentive and okay millert@, okay marc@. Various testing, thanks.
2005-10-19Remove v_vnlock from struct vnode, okay krw@ tedu@Pedro Martelletto
2005-10-10Use free(9) to free memory allocated with malloc(9), okay krw@, marius@Pedro Martelletto
2005-05-24Fix our NTFS readdir function.Brad Smith
To check a directory's in-use bitmap bit by bit, we use a pointer to an 8 bit wide unsigned value. The index used to dereference this pointer is calculated by shifting the bit index right 3 bits. Then we do a logical AND with the bit# represented by the lower 3 bits of the bit index. This is an idiomatic way of iterating through a bit map with simple bitwise operations. This commit fixes the bug that we only checked bits 3:0 of each 8 bit chunk, because we only used bits 1:0 of the bit index for the bit# in the current 8 bit value. This resulted in files not being returned by getdirentries(2). Change the type of the bit map pointer from `char *' to `u_int8_t *'. From FreeBSD ok pedro
2005-05-22The printf(9) `%p' conversion specifier puts an "0x" inBrad Smith
front of the pointer value. Therefore, remove the "0x" from the format string. From FreeBSD ok millert@
2005-05-21fix parenthesisBrad Smith
2005-05-21- use MIN()/MAX() rather than min()/max(), to avoid possible truncationBrad Smith
of 64bit values to 'int' - read always single cluster of data, to avoid confusing the buffer cache; this appears to fix the random file content corruption which happens when more than one cluster is read at the same time, i.e. for files > 3*cluster_size - fix some questionable pointer arithmetics; gcc-3.4.x didn't like it - g/c redundant debug printf - remove all traces of non-working quota support add quota support to TODO - makes sense only once writing support would be implemented, and only once NTFS would support notion of file 'owner' - use 64bit local variable for free space computation From NetBSD - Comment fixes from joris@ ok millert@ joris@ pedro@
2005-04-20fix commentBrad Smith
2005-04-16comment out some code which is causing ntfs panics dueJoris Vink
to the fact ntfs uses the generic locking functions which do not lock anything right now. ok pedro@
2005-03-08fix a page fault that occurs when a reclaimed vnode is then reused.Patrick Latifi
from FreeBSD ok pedro tedu miod, tested by millert and myself