bug-parted
[Top][All Lists]
Advanced

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

Re: statuscheck patch..


From: B.Hakvoort
Subject: Re: statuscheck patch..
Date: Tue, 17 Aug 2004 17:16:11 +0200

Hi,

found some time and implemented the check as we discussed it. It surely
cuts codesize! ;)

The main check is done in /etc/mtab instead of /proc/mounts, this is
because /etc/mtab contains real ( or followable ) names, while
/proc/mounts can be quite cryptic. I have collected a few mtab files
from different configs and haven't found any problem thusfar.
NOTE: rootdevice is included in this check!

The algorithm:
- get minor/major from the partition to be checked
- get mounted partitions from file* and compare major/minor numbers
- if they match return 1 else 0

* in this case, file can be /etc/mtab or /proc/swaps (swap is not listed
in /etc/mtab)

I hope it'll do fine ;-)

Bart,

PS. patch attached is diff -u against linux.c from release 1.6.12
-- 
www.titanium-it.nl --- Open Minded Open Source
www.heavenisopen.com <-----Another Source

Attachment: busy_check.diff
Description: Text Data


reply via email to

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