journal: introduce determine_path_usage()
authorFranck Bui <fbui@suse.com>
Mon, 3 Oct 2016 16:12:41 +0000 (18:12 +0200)
committerFranck Bui <fbui@suse.com>
Wed, 19 Oct 2016 07:53:07 +0000 (09:53 +0200)
commite0ed6db9cdde5ee64fb91f131beb0aa1690bc59a
treeb0133d968cb165501f47d2db6f66b7d929186520
parentba25d39e449347952522162c3fa110b04308e28c
journal: introduce determine_path_usage()

This commit simply extracts from determine_space_for() the code which
determines the FS usage where the passed path lives (statvfs(3)) and put it
into a function of its own so it can be reused by others paths later.

No functional changes.
src/journal/journald-server.c