Date: Fri, 2 May 2014 12:47:00 +0200 From: Matthias Apitz <guru@unixarea.de> To: freebsd-questions@freebsd.org Subject: Re: output of last(1) stopps in March 25 Message-ID: <20140502104700.GA2354@La-Habana> In-Reply-To: <20140502101941.GA2219@La-Habana> References: <20140502101941.GA2219@La-Habana>
next in thread | previous in thread | raw e-mail | index | archive | help
El día Friday, May 02, 2014 a las 12:19:42PM +0200, Matthias Apitz escribió:
> and I encounter the problem, that the output of last(1) stopps in March:
>
> # last -5
> shutdown time mar 25 mar 17:30
> guru ttyv1 mar 25 mar 17:28 - shutdown (00:02)
> guru ttyv0 mar 25 mar 17:15 - shutdown (00:14)
> boot time mar 25 mar 16:13
> shutdown time mar 25 mar 06:53
>
> The utmpx(5) file seems to be written uptodate:
>
> # ls -l /var/log/utx.log*
> -rw-r--r-- 1 root wheel 111586 2 may 11:10 /var/log/utx.log
> -rw-r--r-- 1 root wheel 17441 1 jun 2013 /var/log/utx.log.0
trussing the last(1) command shows, that it does only read 98304 bytes
of the file (3x 32768), while the file size is 111586:
open("/var/log/utx.log",0x100000,0666) = 3 (0x3)
fstat(3,{ mode=-rw-r--r-- ,inode=160570,size=111586,blksize=32768 }) = 0
(0x0)
read(3,"\0\^U\a\0\^D\M-^\^Xr\^Wo\M^H\M-m"...,32768) = 32768 (0x8000)
read(3,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,32768) = 32768 (0x8000)
read(3,"\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"...,32768) = 32768 (0x8000)
close(3) = 0 (0x0)
must be a bug :-(
matthias
--
Matthias Apitz | /"\ ASCII Ribbon Campaign:
E-mail: guru@unixarea.de | \ / - No HTML/RTF in E-mail
WWW: http://www.unixarea.de/ | X - No proprietary attachments
phone: +49-170-4527211 | / \ - Respect for open standards
| en.wikipedia.org/wiki/ASCII_Ribbon_Campaign
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20140502104700.GA2354>
