mirror of
https://github.com/nilfs-dev/nilfs-utils.git
synced 2026-01-26 13:43:15 +00:00
lssu: fix protection period option
Fix a bug of nilfs_get_latest_usage() function which blocks the protection period specified with -p option from being passed to nilfs_assess_segment() function and results in incorrect output of live block counts. Signed-off-by: Ryusuke Konishi <konishi.ryusuke@lab.ntt.co.jp>
This commit is contained in:
parent
9b5f6a1848
commit
fdde7042c4
@ -137,7 +137,7 @@ static ssize_t lssu_get_latest_usage(struct nilfs *nilfs,
|
||||
__u64 segnums[1];
|
||||
int ret;
|
||||
|
||||
if (protcno == NILFS_CNO_MAX) {
|
||||
if (protcno != NILFS_CNO_MAX) {
|
||||
params.flags |= NILFS_RECLAIM_PARAM_PROTCNO;
|
||||
params.protcno = protcno;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user