summaryrefslogtreecommitdiffstats
path: root/move
diff options
context:
space:
mode:
authorGuillaume Cottenceau <gc@mandriva.com>2003-12-01 18:45:16 +0000
committerGuillaume Cottenceau <gc@mandriva.com>2003-12-01 18:45:16 +0000
commitea8b58e0f58bdfc04c1fc563501eadb85a04913c (patch)
tree6ff33f90762ef7da846df57ac47249129495b4a6 /move
parentd5687fcf08f951399635388e1c5998bc5bf02276 (diff)
downloaddrakx-ea8b58e0f58bdfc04c1fc563501eadb85a04913c.tar
drakx-ea8b58e0f58bdfc04c1fc563501eadb85a04913c.tar.gz
drakx-ea8b58e0f58bdfc04c1fc563501eadb85a04913c.tar.bz2
drakx-ea8b58e0f58bdfc04c1fc563501eadb85a04913c.tar.xz
drakx-ea8b58e0f58bdfc04c1fc563501eadb85a04913c.zip
chloop support
Diffstat (limited to 'move')
-rw-r--r--move/move.pm2
-rwxr-xr-xmove/tree/mdk_move_loop4
2 files changed, 3 insertions, 3 deletions
diff --git a/move/move.pm b/move/move.pm
index 25210ae4f..2c26474b4 100644
--- a/move/move.pm
+++ b/move/move.pm
@@ -197,7 +197,7 @@ sub lomount_clp {
log::l("lomount_clp: lomounting $name");
mkdir_p($dir);
- my $dev = devices::find_free_loop();
+ my $dev = devices::find_free_chloop();
run_program::run('losetup', '-r', '-e', 'gz', $dev, $clp);
run_program::run('mount', '-r', $dev, $dir);
}
diff --git a/move/tree/mdk_move_loop b/move/tree/mdk_move_loop
index b98c4a417..76aca6dbe 100755
--- a/move/tree/mdk_move_loop
+++ b/move/tree/mdk_move_loop
@@ -8,8 +8,8 @@ sub name2file {
sub get_file2loop {
my %file2loop;
foreach (0 .. 9) {
- my ($file) = `sudo losetup /dev/loop$_ 2>/dev/null` =~ m!\([^)]*/([^)]*)\)! or last;
- $file2loop{$file} = "loop$_";
+ my ($file) = `sudo losetup /dev/chloop$_ 2>/dev/null` =~ m!\([^)]*/([^)]*)\)! or last;
+ $file2loop{$file} = "chloop$_";
}
%file2loop;
}