diff options
author | Karel Zak | 2011-06-21 14:58:37 +0200 |
---|---|---|
committer | Karel Zak | 2011-06-21 14:58:37 +0200 |
commit | d84508cfbdba620d02e37dbd47c3065dfe7ab240 (patch) | |
tree | 0c21d49cc675f2c0b26a19e236b5a3ab18319279 /libmount/src/fs.c | |
parent | mountpoint: add new command (diff) | |
download | kernel-qcow2-util-linux-d84508cfbdba620d02e37dbd47c3065dfe7ab240.tar.gz kernel-qcow2-util-linux-d84508cfbdba620d02e37dbd47c3065dfe7ab240.tar.xz kernel-qcow2-util-linux-d84508cfbdba620d02e37dbd47c3065dfe7ab240.zip |
libmount: allow to set parser callback to context
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libmount/src/fs.c')
-rw-r--r-- | libmount/src/fs.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/libmount/src/fs.c b/libmount/src/fs.c index 02f401d95..dc6009cf9 100644 --- a/libmount/src/fs.c +++ b/libmount/src/fs.c @@ -1220,13 +1220,7 @@ int mnt_fs_match_fstype(struct libmnt_fs *fs, const char *types) */ int mnt_fs_match_options(struct libmnt_fs *fs, const char *options) { - char *o = mnt_fs_strdup_options(fs); - int rc = 0; - - if (o) - rc = mnt_match_options(o, options); - free(o); - return rc; + return mnt_match_options(mnt_fs_get_options(fs), options); } /** |