[Ocfs2-tools-devel] [PATCH 1/2] reflink: Do not call reflink syscall
Sunil Mushran
sunil.mushran at oracle.com
Wed Feb 17 17:42:31 PST 2010
The reflink() syscall is still not in kernel. The utility should
just call ioctl_reflink.
Signed-off-by: Sunil Mushran <sunil.mushran at oracle.com>
---
coreutils-6.9/src/ln.c | 9 +--------
1 files changed, 1 insertions(+), 8 deletions(-)
diff --git a/coreutils-6.9/src/ln.c b/coreutils-6.9/src/ln.c
index 05bd6b6..456db68 100644
--- a/coreutils-6.9/src/ln.c
+++ b/coreutils-6.9/src/ln.c
@@ -250,14 +250,7 @@ static int ioctl_reflink(const char *oldpath, const char *newpath)
static int try_reflink(const char *oldpath, const char *newpath,
int preserve)
{
- int rc;
- rc = reflink(oldpath, newpath, preserve);
- if (rc)
- {
- if ((errno == -EPERM) || (errno == -ENOSYS))
- rc = ioctl_reflink(oldpath, newpath, preserve);
- }
- return rc;
+ return ioctl_reflink(oldpath, newpath, preserve);
}
static int do_reflink(const char *oldpath, const char *newpath)
--
1.6.3.3
More information about the Ocfs2-tools-devel
mailing list