diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-08-28 23:39:41 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-08-28 23:39:41 +0200 |
commit | 2603474ff9be2418900581da1af5cccc9f13cae1 (patch) | |
tree | 783c89e1baf6718b8207fb340f5ac143d86d6788 /extras/volume_id/lib/volume_id.c | |
parent | ba6929f6690a72485ac3c6b7610ffbd5ab319be7 (diff) |
volume_id: remove deprecated functions and bump major version
Diffstat (limited to 'extras/volume_id/lib/volume_id.c')
-rw-r--r-- | extras/volume_id/lib/volume_id.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/extras/volume_id/lib/volume_id.c b/extras/volume_id/lib/volume_id.c index b247fe2ddb..86e66bb76c 100644 --- a/extras/volume_id/lib/volume_id.c +++ b/extras/volume_id/lib/volume_id.c @@ -26,6 +26,7 @@ #include <sys/stat.h> #include "libvolume_id.h" +#include "libvolume_id-private.h" #include "util.h" #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) @@ -489,27 +490,6 @@ struct volume_id *volume_id_open_fd(int fd) return id; } -struct volume_id *volume_id_open_node(const char *path) -{ - struct volume_id *id; - int fd; - - fd = open(path, O_RDONLY); - if (fd < 0) { - dbg("unable to open '%s'\n", path); - return NULL; - } - - id = volume_id_open_fd(fd); - if (id == NULL) - return NULL; - - /* close fd on device close */ - id->fd_close = 1; - - return id; -} - /** * volume_id_close: * @id: Probing context. |