Discussion:
[PATCH] lscp: show snapshots, even if marked minor (reverse mode)
Ryusuke Konishi
2014-09-09 20:24:22 UTC
Permalink
Apply the same change as the commit
d04aea7db2281d2f22d1c943dc5791931db8c474 "lscp: always show snapshots,
even if marked minor" for reverse mode.

Cc: Dan McGee <dan-fd97jBR+K/***@public.gmane.org>
Signed-off-by: Ryusuke Konishi <konishi.ryusuke-***@public.gmane.org>
---
bin/lscp.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/bin/lscp.c b/bin/lscp.c
index a7bf555..c855def 100644
--- a/bin/lscp.c
+++ b/bin/lscp.c
@@ -198,7 +198,8 @@ static int lscp_backward_cpinfo(struct nilfs *nilfs,

for (cpi = cpinfos + n - 1; cpi >= cpinfos && rest > 0; cpi--) {
if (cpi->ci_cno < eidx &&
- (show_all || !nilfs_cpinfo_minor(cpi))) {
+ (show_all || nilfs_cpinfo_snapshot(cpi) ||
+ !nilfs_cpinfo_minor(cpi))) {
lscp_print_cpinfo(cpi);
rest--;
}
--
1.7.9.4

--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo-***@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Loading...