From 5a7bee561c707c118bb27006c7c5f275177e9749 Mon Sep 17 00:00:00 2001 From: Pascal Rigaux Date: Tue, 21 Oct 2003 17:00:01 +0000 Subject: add beginning of gzloop handling --- mdk-stage1/lomount.c | 3 ++- mdk-stage1/lomount.h | 2 +- 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 -- cgit v1.2.1