remove unnecessary file cleaning

This commit is contained in:
Tobias Powalowski 2010-07-01 22:22:54 +02:00
parent 8ee3cdac41
commit 881d999f67

View file

@ -1896,7 +1896,7 @@ btrfs_parts() {
if [ -n /tmp/.btrfs-devices ]; then if [ -n /tmp/.btrfs-devices ]; then
for i in $(cat /tmp/.btrfs-devices); do for i in $(cat /tmp/.btrfs-devices); do
BTRFS_DEVICES="$BTRFS_DEVICES#$i" BTRFS_DEVICES="$BTRFS_DEVICES#$i"
# remove if no subvolume is used! # remove device if no subvolume is used!
[ "$BTRFS_SUBVOLUME" = "NONE" ] && PARTS="$(echo $PARTS | sed -e "s#${i}\ _##g")" [ "$BTRFS_SUBVOLUME" = "NONE" ] && PARTS="$(echo $PARTS | sed -e "s#${i}\ _##g")"
done done
fi fi
@ -1928,7 +1928,6 @@ select_btrfs_raid_devices () {
# select the second device to use, no missing option available! # select the second device to use, no missing option available!
BTRFS_PART="$BTRFS_DEVICE" BTRFS_PART="$BTRFS_DEVICE"
BTRFS_PARTS="$PARTS" BTRFS_PARTS="$PARTS"
: >/tmp/.btrfs-devices
echo "$BTRFS_PART" >>/tmp/.btrfs-devices echo "$BTRFS_PART" >>/tmp/.btrfs-devices
BTRFS_PARTS="$(echo $BTRFS_PARTS | sed -e "s#${BTRFS_PART}\ _##g")" BTRFS_PARTS="$(echo $BTRFS_PARTS | sed -e "s#${BTRFS_PART}\ _##g")"
RAIDNUMBER=2 RAIDNUMBER=2