Subject: Re: getting partition "last mounted" data
To: None <netbsd-users@NetBSD.org>
From: George Georgalis <email@example.com>
Date: 10/30/2007 09:46:03
On Tue, Oct 30, 2007 at 11:24:54AM +0200, Antti Kantee wrote:
>On Tue Oct 30 2007 at 04:23:36 +0000, Steven M. Bellovin wrote:
>> On Mon, 29 Oct 2007 23:03:11 -0400
>> George Georgalis <firstname.lastname@example.org> wrote:
>> > when I "fsck -f wd1f" part of the output is
>> > ** Last Mounted on /utf
>> > is there any way to get that last mounted info,
>> > without doing fsck?
>> dumpfs -s, I believe.
>file -s will also produce that info. choose your poison ;)
Thanks, good info. file is nice for quick reference.
I saw the id field in the dumpfs output and I wanted
to verify it meant a unique id for the fs.
sblock.fs_id = (long)tv.tv_sec; /* XXXfvdl huh? */
sblock.fs_id = arc4random() & INT32_MAX;
rc4random is clear enough, but what is tv.tv_sec?
George Georgalis, information system scientist <IXOYE><