Blame 0067-dracut-functions.sh-cp-with-reflink-auto-and-sparse-.patch
|
Harald Hoyer |
53e990 |
From f550ba07400662633295c9681a80787fc44e61fa Mon Sep 17 00:00:00 2001
|
|
Harald Hoyer |
53e990 |
From: Harald Hoyer <harald@redhat.com>
|
|
Harald Hoyer |
53e990 |
Date: Fri, 22 Jun 2012 08:59:22 +0200
|
|
Harald Hoyer |
53e990 |
Subject: [PATCH] dracut-functions.sh: cp with --reflink=auto and
|
|
Harald Hoyer |
53e990 |
--sparse=auto
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
cp will use COW data copy most of the time. So, it's even better than
|
|
Harald Hoyer |
53e990 |
hardlink, because we don't have to care about hardlinks, when modifying
|
|
Harald Hoyer |
53e990 |
files in post.
|
|
Harald Hoyer |
53e990 |
---
|
|
Harald Hoyer |
53e990 |
dracut-functions.sh | 2 +-
|
|
Harald Hoyer |
53e990 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
diff --git a/dracut-functions.sh b/dracut-functions.sh
|
|
Harald Hoyer |
53e990 |
index 3b562e7..b9ce688 100755
|
|
Harald Hoyer |
53e990 |
--- a/dracut-functions.sh
|
|
Harald Hoyer |
53e990 |
+++ b/dracut-functions.sh
|
|
Harald Hoyer |
53e990 |
@@ -435,7 +435,7 @@ inst_simple() {
|
|
Harald Hoyer |
53e990 |
inst "${_src%/*}/.${_src##*/}.hmac" "${target%/*}/.${target##*/}.hmac"
|
|
Harald Hoyer |
53e990 |
fi
|
|
Harald Hoyer |
53e990 |
ddebug "Installing $_src"
|
|
Harald Hoyer |
53e990 |
- cp --sparse=always -pfL "$_src" "${initdir}/$target"
|
|
Harald Hoyer |
53e990 |
+ cp --reflink=auto --sparse=auto -pfL "$_src" "${initdir}/$target"
|
|
Harald Hoyer |
53e990 |
}
|
|
Harald Hoyer |
53e990 |
|
|
Harald Hoyer |
53e990 |
# find symlinks linked to given library file
|