Subject: non-functional ntfs
To: None <tech-kern@netbsd.org>
From: Johan Danielsson <joda@pdc.kth.se>
List: tech-kern
Date: 03/29/2001 12:53:38
Is this correct, or do we need some kind of loop here?
/Johan
--- ntfs_subr.c 2001/03/29 10:51:16 1.27
+++ ntfs_subr.c 2001/03/29 10:51:48
@@ -1527,14 +1527,8 @@
off = ntfs_btocnoff(off);
while (left && ccl) {
-#if defined(__FreeBSD__)
tocopy = min(left,
min(ntfs_cntob(ccl) - off, MAXBSIZE - off));
-#else
- /* under NetBSD, bread() can read
- * maximum one block worth of data */
- tocopy = min(left, ntmp->ntm_bps - off);
-#endif
cl = ntfs_btocl(tocopy + off);
ddprintf(("ntfs_writentvattr_plain: write: " \
"cn: 0x%x cl: %d, off: %d len: %d, left: %d\n",
@@ -1631,16 +1625,9 @@
off = ntfs_btocnoff(off);
while (left && ccl) {
-#if defined(__FreeBSD__)
tocopy = min(left,
min(ntfs_cntob(ccl) - off,
MAXBSIZE - off));
-#else
- /* under NetBSD, bread() can read
- * maximum one block worth of data */
- tocopy = min(left,
- ntmp->ntm_bps - off);
-#endif
cl = ntfs_btocl(tocopy + off);
ddprintf(("ntfs_readntvattr_plain: " \
"read: cn: 0x%x cl: %d, " \