Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/fs/ntfs add more debugging.



details:   https://anonhg.NetBSD.org/src/rev/3032fb80a580
branches:  trunk
changeset: 335361:3032fb80a580
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Jan 04 16:19:12 2015 +0000

description:
add more debugging.

diffstat:

 sys/fs/ntfs/ntfs_subr.c   |   8 ++++----
 sys/fs/ntfs/ntfs_vfsops.c |  11 ++++++++---
 2 files changed, 12 insertions(+), 7 deletions(-)

diffs (69 lines):

diff -r b653775a2dd9 -r 3032fb80a580 sys/fs/ntfs/ntfs_subr.c
--- a/sys/fs/ntfs/ntfs_subr.c   Sun Jan 04 16:06:29 2015 +0000
+++ b/sys/fs/ntfs/ntfs_subr.c   Sun Jan 04 16:19:12 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ntfs_subr.c,v 1.56 2014/12/29 16:37:27 maxv Exp $      */
+/*     $NetBSD: ntfs_subr.c,v 1.57 2015/01/04 16:19:12 christos Exp $  */
 
 /*-
  * Copyright (c) 1998, 1999 Semen Ustimenko (semenu%FreeBSD.org@localhost)
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ntfs_subr.c,v 1.56 2014/12/29 16:37:27 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ntfs_subr.c,v 1.57 2015/01/04 16:19:12 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -227,8 +227,8 @@
                error = ntfs_vgetex(ntmp->ntm_mountp, aalp->al_inumber,
                                NTFS_A_DATA, "", LK_EXCLUSIVE, &newvp);
                if (error) {
-                       printf("%s: CAN'T VGET INO: %d\n", __func__,
-                           aalp->al_inumber);
+                       printf("%s: CAN'T VGET INO: %d (error %d)\n", __func__,
+                           aalp->al_inumber, error);
                        goto out;
                }
                newip = VTONT(newvp);
diff -r b653775a2dd9 -r 3032fb80a580 sys/fs/ntfs/ntfs_vfsops.c
--- a/sys/fs/ntfs/ntfs_vfsops.c Sun Jan 04 16:06:29 2015 +0000
+++ b/sys/fs/ntfs/ntfs_vfsops.c Sun Jan 04 16:19:12 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ntfs_vfsops.c,v 1.100 2014/12/28 13:11:52 maxv Exp $   */
+/*     $NetBSD: ntfs_vfsops.c,v 1.101 2015/01/04 16:19:12 christos Exp $       */
 
 /*-
  * Copyright (c) 1998, 1999 Semen Ustimenko
@@ -29,7 +29,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ntfs_vfsops.c,v 1.100 2014/12/28 13:11:52 maxv Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ntfs_vfsops.c,v 1.101 2015/01/04 16:19:12 christos Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -737,6 +737,8 @@
 
        error = ntfs_ntvattrget(ntmp, ip, NTFS_A_NAME, NULL, 0, &vap);
        if (error) {
+               printf("%s: ino %jd (error %d)\n", __func__,
+                   (intmax_t)ip->i_number, error);
                ntfs_ntput(ip);
                goto out;
        }
@@ -763,8 +765,11 @@
                        fp->f_size = 0;
                        fp->f_allocated = 0;
                        error = 0;
-               } else
+               } else {
+                       printf("%s: ino %jd attr %u (error %d)\n", __func__,
+                           (intmax_t)ip->i_number, ntkey->k_attrtype, error);
                        goto out;
+               }
        }
 
        if (key_len <= sizeof(fp->f_smallkey))



Home | Main Index | Thread Index | Old Index