|
|
| version 1.9, 2003/12/29 18:04:50 | version 1.10, 2004/02/05 21:03:37 |
|---|---|
| Line 55 | Line 55 |
| #include "ntfs_compr.h" | #include "ntfs_compr.h" |
| #include "ntfs_ihash.h" | #include "ntfs_ihash.h" |
| #if defined(__FreeBSD__) | #if defined(__DragonFly__) |
| MALLOC_DEFINE(M_NTFSNTVATTR, "NTFS vattr", "NTFS file attribute information"); | MALLOC_DEFINE(M_NTFSNTVATTR, "NTFS vattr", "NTFS file attribute information"); |
| MALLOC_DEFINE(M_NTFSRDATA, "NTFS res data", "NTFS resident data"); | MALLOC_DEFINE(M_NTFSRDATA, "NTFS res data", "NTFS resident data"); |
| MALLOC_DEFINE(M_NTFSRUN, "NTFS vrun", "NTFS vrun storage"); | MALLOC_DEFINE(M_NTFSRUN, "NTFS vrun", "NTFS vrun storage"); |
| Line 1444 ntfs_writentvattr_plain( | Line 1444 ntfs_writentvattr_plain( |
| off = ntfs_btocnoff(off); | off = ntfs_btocnoff(off); |
| while (left && ccl) { | while (left && ccl) { |
| #if defined(__FreeBSD__) | #if defined(__DragonFly__) |
| tocopy = min(left, | tocopy = min(left, |
| min(ntfs_cntob(ccl) - off, MAXBSIZE - off)); | min(ntfs_cntob(ccl) - off, MAXBSIZE - off)); |
| #else | #else |
| Line 1548 ntfs_readntvattr_plain( | Line 1548 ntfs_readntvattr_plain( |
| off = ntfs_btocnoff(off); | off = ntfs_btocnoff(off); |
| while (left && ccl) { | while (left && ccl) { |
| #if defined(__FreeBSD__) | #if defined(__DragonFly__) |
| tocopy = min(left, | tocopy = min(left, |
| min(ntfs_cntob(ccl) - off, | min(ntfs_cntob(ccl) - off, |
| MAXBSIZE - off)); | MAXBSIZE - off)); |