From 0c8eba97b35d7503336bc7b2ea154ce98aebaaf2 Mon Sep 17 00:00:00 2001 From: Jeremy Katz Date: Tue, 18 Feb 2003 00:45:54 +0000 Subject: support bind mounts for upgrade/rescue mode. basically, create a new filesystem type and device which get used and add a keyword parameter for mounting the diff looks large, but most of it is adjusting callers of doPwMount in the loader --- loader2/method.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'loader2/method.c') diff --git a/loader2/method.c b/loader2/method.c index 6cef9be5f..b2a4ecc5f 100644 --- a/loader2/method.c +++ b/loader2/method.c @@ -134,11 +134,11 @@ int mountLoopback(char * fsystem, char * mntpoint, char * device) { close(loopfd); if (doPwMount(filename, mntpoint, "iso9660", 1, - 0, NULL, NULL)) { + 0, NULL, NULL, 0)) { if (doPwMount(filename, mntpoint, "ext2", 1, - 0, NULL, NULL)) { + 0, NULL, NULL, 0)) { if (doPwMount(filename, mntpoint, "cramfs", 1, - 0, NULL, NULL)) { + 0, NULL, NULL, 0)) { logMessage("failed to mount loop: %s", strerror(errno)); @@ -213,7 +213,7 @@ int readStampFileFromIso(char *file, char **timestamp, char **releasedescr) { if (S_ISBLK(sb.st_mode)) { filetype = 1; if (doPwMount(file, "/tmp/testmnt", - "iso9660", 1, 0, NULL, NULL)) { + "iso9660", 1, 0, NULL, NULL, 0)) { logMessage("Failed to mount device %s to get description", file); return -1; } -- cgit