]> git.ipfire.org Git - thirdparty/util-linux.git/commit
libmount: fix Python get_propagation
authorGiuseppe Scrivano <gscrivan@redhat.com>
Thu, 21 Sep 2017 21:18:30 +0000 (23:18 +0200)
committerGiuseppe Scrivano <gscrivan@redhat.com>
Thu, 21 Sep 2017 21:18:32 +0000 (23:18 +0200)
commitf218d8d2f53633ea5c2afde211e4e2ad6ce486e9
treead5f8ba7042f220f43dbe082958d38f953d695d7
parent323e0668cd380b3353da03d5bd74887ab26f1ea3
libmount: fix Python get_propagation

The current implementation would return always 0, as it is the return
code of mnt_fs_get_propagation.  Change the implementation to raise an
exception on an error and return the propagation flags otherwise.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
libmount/python/fs.c