summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPascal Rigaux <pixel@mandriva.com>2003-10-21 17:00:01 +0000
committerPascal Rigaux <pixel@mandriva.com>2003-10-21 17:00:01 +0000
commit5a7bee561c707c118bb27006c7c5f275177e9749 (patch)
tree95c9a9ca3192a206d43385a34acbc11624d69b59
parent8dff6ec2133d4c16bdf885e75907c6e441f9bdc7 (diff)
downloaddrakx-backup-do-not-use-5a7bee561c707c118bb27006c7c5f275177e9749.tar
drakx-backup-do-not-use-5a7bee561c707c118bb27006c7c5f275177e9749.tar.gz
drakx-backup-do-not-use-5a7bee561c707c118bb27006c7c5f275177e9749.tar.bz2
drakx-backup-do-not-use-5a7bee561c707c118bb27006c7c5f275177e9749.tar.xz
drakx-backup-do-not-use-5a7bee561c707c118bb27006c7c5f275177e9749.zip
add beginning of gzloop handling
-rw-r--r--mdk-stage1/lomount.c3
-rw-r--r--mdk-stage1/lomount.h2
2 files changed, 3 insertions, 2 deletions
diff --git a/mdk-stage1/lomount.c b/mdk-stage1/lomount.c
index 991a862c7..a6dc9832f 100644
--- a/mdk-stage1/lomount.c
+++ b/mdk-stage1/lomount.c
@@ -60,7 +60,7 @@ struct loop_info
#define LOOP_GET_STATUS 0x4C03
int
-set_loop (const char *device, const char *file)
+set_loop (const char *device, const char *file, int gz)
{
struct loop_info loopinfo;
int fd, ffd, mode;
@@ -79,6 +79,7 @@ set_loop (const char *device, const char *file)
strncpy(loopinfo.lo_name, file, LO_NAME_SIZE);
loopinfo.lo_name[LO_NAME_SIZE - 1] = 0;
loopinfo.lo_offset = 0;
+ loopinfo.lo_encrypt_key = 13; /* LO_CRYPT_GZ */
#ifdef MCL_FUTURE
/*
diff --git a/mdk-stage1/lomount.h b/mdk-stage1/lomount.h
index 3b8a30ac1..2d109dc05 100644
--- a/mdk-stage1/lomount.h
+++ b/mdk-stage1/lomount.h
@@ -15,7 +15,7 @@
#ifndef LOMOUNT_H
#define LOMOUNT_H
-int lomount(char *loopfile, char *where);
+int lomount(char *loopfile, char *where, int gz);
int loumount(void);
#endif