[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Resizing root partition

From: Andrew Clausen
Subject: Re: Resizing root partition
Date: Tue, 5 Aug 2003 20:52:21 +1000
User-agent: Mutt/1.5.4i

On Tue, Aug 05, 2003 at 02:38:40PM +0400, Yury Umanets wrote:
> Probably it is time to change the stuff for determining is partition is
> mounted? If you agree I can try to fix it.

I've thought a bit about this.

Perhaps the best way to do this is:
(1) for each entry in /etc/mtab and /proc/mounts, run stat().  Also,
stat "/".
(2) for the partition, figure out one of it's corresponding devices,
and run stat() on it.

If anything from (1) matches with (2), then there it is mounted.

This deals with the case where /proc/mounts lists entries in a devfs
form, and Parted is invoked in a traditional manner.

Sound good?

It also has the advantage of being very easy to implement :)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]