View | Details | Raw Unified | Return to bug 53341
Collapse All | Expand All

(-)config.c (-1 / +16 lines)
Lines 172-177 Link Here
172
    return 0;
172
    return 0;
173
}
173
}
174
174
175
static int
176
dump_freq(Chunk *c1)
177
{
178
    if (c1->type == part && c1->subtype != FS_SWAP) {
179
	if (rootdev_is_od == 0 && strncmp(c1->name, "od", 2) == 0)
180
	    return 0;
181
	else if (strncmp(mount_point(c1), "/home", 5) == 0)
182
	    return 7;
183
	else
184
	    return 28;
185
    }
186
    return 0;
187
}
188
189
175
int
190
int
176
configFstab(dialogMenuItem *self)
191
configFstab(dialogMenuItem *self)
177
{
192
{
Lines 233-239 Link Here
233
    fprintf(fstab, "# Device\t\tMountpoint\tFStype\tOptions\t\tDump\tPass#\n");
248
    fprintf(fstab, "# Device\t\tMountpoint\tFStype\tOptions\t\tDump\tPass#\n");
234
    for (i = 0; i < nchunks; i++)
249
    for (i = 0; i < nchunks; i++)
235
	fprintf(fstab, "/dev/%s\t\t%s\t\t%s\t%s\t\t%d\t%d\n", name_of(chunk_list[i]), mount_point(chunk_list[i]),
250
	fprintf(fstab, "/dev/%s\t\t%s\t\t%s\t%s\t\t%d\t%d\n", name_of(chunk_list[i]), mount_point(chunk_list[i]),
236
		fstype(chunk_list[i]), fstype_short(chunk_list[i]), seq_num(chunk_list[i]), seq_num(chunk_list[i]));
251
		fstype(chunk_list[i]), fstype_short(chunk_list[i]), dump_freq(chunk_list[i]), seq_num(chunk_list[i]));
237
    
252
    
238
    /* Now look for the CDROMs */
253
    /* Now look for the CDROMs */
239
    devs = deviceFind(NULL, DEVICE_TYPE_CDROM);
254
    devs = deviceFind(NULL, DEVICE_TYPE_CDROM);

Return to bug 53341