summaryrefslogtreecommitdiff
path: root/sys/ntfs
AgeCommit message (Collapse)Author
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
2005-02-01Before carrying on with the mount request, make sure the process hasPedro Martelletto
enough permissions to access the given device. ok millert@
2004-12-09* plug memory leak on mount failure.Patrick Latifi
* spacing ok tedu pedro millert otto
2003-08-14constify vfsops; tedu@ okMichael Shalayeff
2003-06-02Remove the advertising clause in the UCB license which BerkeleyTodd C. Miller
rescinded 22 July 1999. Proofed by myself and Theo.
2003-05-24rename export to export_info for c++ safety. report by naddy@Ted Unangst
2003-05-20un __PTed Unangst
2003-05-20fix the tagsMichael Shalayeff
2003-05-20by popular request, NTFS support. read only.Ted Unangst
The code comes from NetBSD and was ported by Julian Bordet. ok deraadt@