From b10941c08db89f52038e19ee8a29f26d7808a448 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Thu, 17 May 2007 20:09:24 +0200 Subject: volume_id: add and export string encoding function Needed for mount(8) to lookup LABEL=* in /dev/disk/by-label/*. Characters not suited for a filename will be escaped and the encoded LABEL=* string is able to find the corresponding symlink. --- extras/volume_id/lib/libvolume_id.h | 1 + 1 file changed, 1 insertion(+) (limited to 'extras/volume_id/lib/libvolume_id.h') diff --git a/extras/volume_id/lib/libvolume_id.h b/extras/volume_id/lib/libvolume_id.h index c0ab29e0f7..19aee68d01 100644 --- a/extras/volume_id/lib/libvolume_id.h +++ b/extras/volume_id/lib/libvolume_id.h @@ -40,6 +40,7 @@ extern int volume_id_get_uuid_raw(struct volume_id *id, const uint8_t **uuid, si extern int volume_id_get_usage(struct volume_id *id, const char **usage); extern int volume_id_get_type(struct volume_id *id, const char **type); extern int volume_id_get_type_version(struct volume_id *id, const char **type_version); +extern int volume_id_encode_string(const char *str, char *str_enc, size_t len); /* * Note: everything below will be made private or removed from -- cgit v1.2.3-54-g00ecf