diff options
author | Justus Winter <4winter@informatik.uni-hamburg.de> | 2014-05-21 18:17:33 +0200 |
---|---|---|
committer | Justus Winter <4winter@informatik.uni-hamburg.de> | 2015-09-10 23:30:09 +0200 |
commit | 11e33e1e9f8ddbc6d35a97893caf908bc9df1e86 (patch) | |
tree | 13e0c5445f1171d5ff06f38aa7c8ff764eec474a /libdiskfs/diskfs.h | |
parent | 176ec926aec9642768615d5875171c24fb10e6b7 (diff) |
libdiskfs: annotate objects managed by libports
Label all port classes and diskfs_port_bucket. Provide
diskfs_format_debug_info which prints a human-readable description of
a protid object, which notably includes the path and the inode number.
* libdiskfs/diskfs.h (diskfs_format_debug_info): New declaration.
* libdiskfs/init-init.c (diskfs_format_debug_info): New function.
(diskfs_init_diskfs): Add annotations to classes and bucket.
Diffstat (limited to 'libdiskfs/diskfs.h')
-rw-r--r-- | libdiskfs/diskfs.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/libdiskfs/diskfs.h b/libdiskfs/diskfs.h index 11fb0ad1..c2f97adf 100644 --- a/libdiskfs/diskfs.h +++ b/libdiskfs/diskfs.h @@ -591,6 +591,14 @@ error_t (*diskfs_read_symlink_hook)(struct node *np, char *target); default function always returns EOPNOTSUPP. */ error_t diskfs_get_source (struct protid *cred, char *source, size_t source_len); + +/* The user may define this function. The function must provide a + human-readable description of PROTID in BUFFER of size SIZE. The + default implementation generates a reasonable amount of + information. */ +error_t diskfs_format_debug_info (const void *protid, + char *buffer, size_t size); + /* Libdiskfs contains a node cache. |