public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [util-linux] Re: magic device renumbering was -- Re: Linux 2.4.2ac20
@ 2001-03-15 23:31 Andries.Brouwer
  2001-03-16  0:51 ` Andreas Dilger
  2001-03-16  1:08 ` Alexander Viro
  0 siblings, 2 replies; 5+ messages in thread
From: Andries.Brouwer @ 2001-03-15 23:31 UTC (permalink / raw)
  To: adilger, lars, mikpe; +Cc: amnet, hch, jjasen1, linux-kernel, util-linux

> I've implemented a patch for util-linux-2.11a
> which adds LABEL support to mkswap(8) and swapon/swapoff(8).

Yes, maybe a reasonable idea.

But I would prefer a somewhat more ambitious approach.

My first thought was: why label individual swap partitions?
I almost never want to distinguish swap partitions, and just do
"swapon -a". In case one wants to guard against changing device names,
why not add an option -A so that "swapon -A" does swapon on each
partition with a swap signature?

However, that would greatly increase the risk that exists already
today: someone has a swap partition, and does mkfs.foo, and
it so happens that foofs does not use the sector with the swapsignature.
Now this foofs partition has a swap signature, but we would be very
unhappy if it were used as swap space.

The real problem is that our disks usually do not have a volume label.
Outside of all file systems.
The "signatures" that we rely on today are located in different places,
so that a filesystem can have several valid signatures at the same time.
And we first know where to look when we know the type already.

Design a Linux partition table format, where a partition descriptor
has fields start, end, fstype, fslabel, and the whole disk has a vollabel.
Put it in sector 0-N for an all-Linux disk, and in sectors pointed at
by a classical DOS-type partition table entry when the disk is shared.

(Maybe I already did that once - it sounds so familiar now that I write
this. Then why was it not pursued? Maybe LVM already does these things?)

Andries

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2001-03-16 13:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <mng==UTC200103152331.AAA2159588.aeb@vlet.cwi.nl>
2001-03-16  2:37 ` [util-linux] Re: magic device renumbering was -- Re: Linux 2.4.2ac20 Michail Brzitwa
2001-03-15 23:31 Andries.Brouwer
2001-03-16  0:51 ` Andreas Dilger
2001-03-16 13:57   ` Mikael Pettersson
2001-03-16  1:08 ` Alexander Viro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox