summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorKarel Zak2018-05-15 13:43:29 +0200
committerKarel Zak2018-06-21 13:07:46 +0200
commitbcf445fd688692fd4cbfde03cda60be4281ac28b (patch)
tree0a805ce19b8b7bb2cf204320eb9cf24b455c9e63 /include
parentlib/loopdev: remove obsolete macro (diff)
downloadkernel-qcow2-util-linux-bcf445fd688692fd4cbfde03cda60be4281ac28b.tar.gz
kernel-qcow2-util-linux-bcf445fd688692fd4cbfde03cda60be4281ac28b.tar.xz
kernel-qcow2-util-linux-bcf445fd688692fd4cbfde03cda60be4281ac28b.zip
lib/path lib/sysfs: add debug
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/path.h2
-rw-r--r--include/sysfs.h2
2 files changed, 4 insertions, 0 deletions
diff --git a/include/path.h b/include/path.h
index 8b000e63a..8b7d568e7 100644
--- a/include/path.h
+++ b/include/path.h
@@ -25,6 +25,8 @@ struct path_cxt *ul_new_path(const char *dir);
void ul_unref_path(struct path_cxt *pc);
void ul_ref_path(struct path_cxt *pc);
+void ul_path_init_debug(void);
+
int ul_path_set_prefix(struct path_cxt *pc, const char *prefix);
const char *ul_path_get_prefix(struct path_cxt *pc);
diff --git a/include/sysfs.h b/include/sysfs.h
index aa02674ad..ea87d6a12 100644
--- a/include/sysfs.h
+++ b/include/sysfs.h
@@ -64,6 +64,8 @@ struct sysfs_blkdev {
hctl_error : 1 ;
};
+void ul_sysfs_init_debug(void);
+
struct path_cxt *ul_new_sysfs_path(dev_t devno, struct path_cxt *parent, const char *prefix);
int sysfs_blkdev_init_path(struct path_cxt *pc, dev_t devno, struct path_cxt *parent);
int sysfs_blkdev_set_parent(struct path_cxt *pc, struct path_cxt *parent);