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 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mdk-stage1/lomount.c') 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 /* -- cgit v1.2.1