Re: [PATCH][5/6]ELF format dump file access

From: Andrew Morton
Date: Wed Sep 15 2004 - 19:17:58 EST


Hariprasad Nellitheertha <hari@xxxxxxxxxx> wrote:
>
> +#ifdef CONFIG_CRASH_DUMP
> + if (dump_enabled) {
> + proc_vmcore = create_proc_entry("vmcore", S_IRUSR, NULL);
> + if (proc_vmcore) {
> + proc_vmcore->proc_fops = &proc_vmcore_operations;
> + proc_vmcore->size =
> + (size_t)(saved_max_pfn << PAGE_SHIFT);
> + }
> + }
> +#endif

Again, please try to move this out of procfs and into a crashdump-specific file.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/