[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: dd/skip-seek-past-file fail on ecryptfs
From: |
Pádraig Brady |
Subject: |
Re: dd/skip-seek-past-file fail on ecryptfs |
Date: |
Mon, 14 Sep 2009 01:46:47 +0100 |
User-agent: |
Thunderbird 2.0.0.6 (X11/20071008) |
Bert Wesarg wrote:
> This short mail is only to inform you, that the dd/skip-seek-past-file
> test fail on a ecryptfs mount. Because this commands takes a long time
> and eat my hard disk space:
>
> truncate --size=$OFF_T_MAX in
>
> More infos at monday.
So ecryptfs doesn't allow sparse files:
http://ecryptfs.sourceforge.net/ecryptfs-faq.html#sparse
Even still it seems like ecryptfs should have immediately
returned, given the "seek" offset is larger than the file
system size?
The attached patch should work around this issue.
cheers,
Pádraig.
>From 41aa853203c104d3f4e8bf0f4a1ccee2c906ff03 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?P=C3=A1draig=20Brady?= <address@hidden>
Date: Mon, 14 Sep 2009 01:38:03 +0100
Subject: [PATCH] tests: fix dd/skip-seek-past-file to work on ecryptfs
* tests/dd/skip-seek-past-file: Require sparse support
to ensure that when we're checking if we can create an
$OFF_T_MAX length file, that we don't actually allocate
any space. This was an issue on ecryptfs and was reported
by Bert Wesarg.
---
tests/dd/skip-seek-past-file | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/tests/dd/skip-seek-past-file b/tests/dd/skip-seek-past-file
index cb36d08..937f99e 100755
--- a/tests/dd/skip-seek-past-file
+++ b/tests/dd/skip-seek-past-file
@@ -22,7 +22,8 @@ if test "$VERBOSE" = yes; then
fi
. $srcdir/test-lib.sh
-eval $(getlimits) #for OFF_T limits
+require_sparse_support_ # for `truncate --size=$OFF_T_MAX`
+eval $(getlimits) # for OFF_T limits
fail=0
--
1.6.2.5
- dd/skip-seek-past-file fail on ecryptfs, Bert Wesarg, 2009/09/13
- Re: dd/skip-seek-past-file fail on ecryptfs,
Pádraig Brady <=
- Re: dd/skip-seek-past-file fail on ecryptfs, Bert Wesarg, 2009/09/14
- Re: dd/skip-seek-past-file fail on ecryptfs, Pádraig Brady, 2009/09/14
- Re: dd/skip-seek-past-file fail on ecryptfs, Bert Wesarg, 2009/09/14
- Re: dd/skip-seek-past-file fail on ecryptfs, Jim Meyering, 2009/09/14
- Re: dd/skip-seek-past-file fail on ecryptfs, Pádraig Brady, 2009/09/14
- Re: dd/skip-seek-past-file fail on ecryptfs, Jim Meyering, 2009/09/14