[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190321220440.GK9434@mit.edu>
Date: Thu, 21 Mar 2019 18:04:40 -0400
From: "Theodore Ts'o" <tytso@....edu>
To: Lukas Czerner <lczerner@...hat.com>
Cc: Ext4 Developers List <linux-ext4@...r.kernel.org>,
darrick.wong@...cle.com
Subject: Re: [PATCH 8/9] e2scrub_all: refactor device probe loop
OK, I've reworked the function to read:
ls_scan_targets() {
lsblk -o NAME,MOUNTPOINT,FSTYPE -P -n -p \
$(lvs -o lv_path --noheadings -S "lv_active=active,lv_role=public,lv_role!=snapshot,vg_free>${snap_size_mb}") | \
grep FSTYPE=\"ext\[234\]\" | while read vars ; do
eval "${vars}"
if [ "${scrub_all}" -eq 1 ] || [ -n "${MOUNTPOINT}" ]; then
echo ${MOUNTPOINT:-${NAME}}
fi
done | sort | uniq
}
I think that's the final answer....
- Ted
Powered by blists - more mailing lists