The function will be useful for the tool which works with write-cache parts. Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>