lkml.org 
[lkml]   [2001]   [Jan]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: Partition IDs in the New World TM
Date
Matt Robinson writes:
> Andreas Dilger wrote:
> > What would be wrong with changing the kernel to skip the first page of
> > swap, and allowing us to put a signature there? This would be really
> > useful for systems that mount ext2 filesystems by LABEL or UUID. With
> > the exception of swap, you currently don't need to care about what disk
> > a filesystem is on. Of course, LVM also fixes this, but not everyone
> > runs LVM.
>
> LKCD starts writing a crash dump after the first page of the swap
> partition (if that is used as the dump partition), so I'd hate to see
> this implemented.

I don't see how this applies... Now that I've been educated about how
swap is set up, I see swap already uses the first page for config info
and a signature. Adding some sort of label or ID to the swap info
wouldn't affect swapping or LKCD in any way because it still wouldn't
go past the first page.

It would already be possible to auto-enable any devices with the swap
signature by doing the same sort of search mount(8) is doing for LABEL
and UUID. The only drawback would be that you can't specify priority
and usage order, and you can't auto-detect swap files. Swap files are
not an issue because you can use the file name to locate them.

Cheers, Andreas
--
Andreas Dilger \ "If a man ate a pound of pasta and a pound of antipasto,
\ would they cancel out, leaving him still hungry?"
http://www-mddsp.enel.ucalgary.ca/People/adilger/ -- Dogbert
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:22    [W:0.074 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site