Skip to content

Commit

Permalink
disabling ext2 support for the base mounts
Browse files Browse the repository at this point in the history
  • Loading branch information
sztupy committed Oct 21, 2010
1 parent 2157238 commit 2f7ad72
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lagfixutils.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ void apply_root_to_device() {
static char* startval[] = {"DATA_FS=","CACHE_FS=","DBDATA_FS=","DATA_LOOP=","CACHE_LOOP=","DBDATA_LOOP=","BIND_DATA_TO_DBDATA=", NULL};
static int catvals[] = { 3,6,7,999 };
static char* categories[][5] = {
{"rfs","ext2","ext4","jfs",NULL},
{"rfs","jfs","ext4",NULL,NULL},
{"false","ext2",NULL,NULL},
{"false","data",NULL,NULL},
{NULL,NULL,NULL,NULL}
Expand Down Expand Up @@ -394,11 +394,11 @@ void mount_block(const char* name, const char* blockname, const char* loopblock,
if (getfsopts==0) {
sprintf(tmp,"mount -t rfs -o nosuid,nodev,check=no %s %s",blockname,destloop);
} else if (getfsopts==1) {
sprintf(tmp,"mount -t ext2 -o noatime,nodiratime %s %s",blockname,destloop);
sprintf(tmp,"mount -t jfs -o noatime,nodiratime %s %s",blockname,destloop);
} else if (getfsopts==2) {
sprintf(tmp,"mount -t ext4 -o noatime,barrier=0,noauto_da_alloc %s %s",blockname,destloop);
} else if (getfsopts==3) {
sprintf(tmp,"mount -t jfs -o noatime,nodiratime %s %s",blockname,destloop);
sprintf(tmp,"mount -t ext2 -o noatime,nodiratime %s %s",blockname,destloop);
}
__system(tmp);
sprintf(tmp,"losetup %s %s/.extfs",loopblock,destloop);__system(tmp);
Expand All @@ -407,11 +407,11 @@ void mount_block(const char* name, const char* blockname, const char* loopblock,
if (getfsopts==0) {
sprintf(tmp,"mount -t rfs -o nosuid,nodev,check=no %s %s",blockname,destnoloop);
} else if (getfsopts==1) {
sprintf(tmp,"mount -t ext2 -o noatime,nodiratime %s %s",blockname,destnoloop);
sprintf(tmp,"mount -t jfs -o noatime,nodiratime %s %s",blockname,destnoloop);
} else if (getfsopts==2) {
sprintf(tmp,"mount -t ext4 -o noatime,barrier=0,noauto_da_alloc %s %s",blockname,destnoloop);
} else if (getfsopts==3) {
sprintf(tmp,"mount -t jfs -o noatime,nodiratime %s %s",blockname,destnoloop);
sprintf(tmp,"mount -t ext2 -o noatime,nodiratime %s %s",blockname,destnoloop);
}
__system(tmp);
}
Expand Down Expand Up @@ -526,13 +526,13 @@ int create_lagfix_partition(int id) {
}
__system(tmp);
} else if (ft==1) {
sprintf(tmp,"/sbin/mkfs.ext2 -L %s -b 4096 -m 0 -F %s",name,blockname);
sprintf(tmp,"/sbin/mkfs.jfs -L %s %s",name,blockname);
__system(tmp);
} else if (ft==2) {
sprintf(tmp,"/sbin/mkfs.ext4 -L %s -b 4096 -m 0 -F %s",name,blockname);
__system(tmp);
} else if (ft==3) {
sprintf(tmp,"/sbin/mkfs.jfs -L %s %s",name,blockname);
sprintf(tmp,"/sbin/mkfs.ext2 -L %s -b 4096 -m 0 -F %s",name,blockname);
__system(tmp);
}

Expand Down

0 comments on commit 2f7ad72

Please sign in to comment.