weirdness with devfs? (time)

2000-08-23 Thread Siobhan Patricia Lynch

this is cute:
notice the dates, they predate the epoch.

weird huh? anyone else see this or am I just off my rocker?

-Trish


total 0
crw-r--r--  1 root   operator  117,   0 Dec 31  1969 acd0a
crw-r--r--  1 root   operator  117,   2 Dec 31  1969 acd0c
crw-r-  1 root   operator   15, 0x00010002 Dec 31  1969 cd0
crw-r-  1 root   operator   15,   2 Dec 31  1969 cd0c
crw---  1 root   wheel   0,   0 Dec 31  1969 console
crw---  1 root   wheel  12, 255 Dec 31  1969 consolectl
crw-rw  1 uucp   dialer 28, 128 Dec 31  1969 cuaa0
crw-rw  1 uucp   dialer 28, 129 Dec 31  1969 cuaa1
crw-rw  1 uucp   dialer 28, 160 Dec 31  1969 cuaia0
crw-rw  1 uucp   dialer 28, 161 Dec 31  1969 cuaia1
crw-rw  1 uucp   dialer 28, 192 Dec 31  1969 cuala0
crw-rw  1 uucp   dialer 28, 193 Dec 31  1969 cuala1
crw-r-  1 root   operator   13, 0x00010002 Dec 31  1969 da0
crw-r-  1 root   operator   13, 0x0002 Dec 31  1969 da0s1a
crw-r-  1 root   operator   13, 0x00020001 Dec 31  1969 da0s1b
crw-r-  1 root   operator   13, 0x00020004 Dec 31  1969 da0s1e
crw-r-  1 root   operator   13, 0x0001000a Dec 31  1969 da1
crw-r-  1 root   operator   13, 0x0002000c Dec 31  1969 da1s1e
crw-r-  1 root   operator   13, 0x00010012 Dec 31  1969 da2
crw-r-  1 root   operator   13, 0x00020014 Dec 31  1969 da2s1e
crw-r-  1 root   operator   13, 0x0001001a Dec 31  1969 da3
crw-r-  1 root   operator   13, 0x0002001c Dec 31  1969 da3s1e
crw-r-  1 root   operator9,   0 Dec 31  1969 fd0
crw---  1 root   wheel   2,  14 Dec 31  1969 io
crw---  1 root   wheel  79,   3 Dec 31  1969 ipauth
crw---  1 root   wheel  79,   0 Dec 31  1969 ipl
crw---  1 root   wheel  79,   1 Dec 31  1969 ipnat
crw---  1 root   wheel  79,   2 Dec 31  1969 ipstate
crw---  1 root   wheel   7,   0 Dec 31  1969 klog
crw-r-  1 root   kmem2,   1 Dec 31  1969 kmem
lrw-r---w-  1 root   wheel0 Dec 31  1969 log - /var/run/log
crw---  1 root   wheel  16,   0 Dec 31  1969 lpt0
crw---  1 root   wheel  16, 128 Dec 31  1969 lpt0.ctl
crw-r-  1 root   kmem2,   0 Dec 31  1969 mem
crw-rw-rw-  1 root   wheel   2,   2 Dec 31  1969 null
crw---  1 root   operator   31,   0 Dec 31  1969 pass0
crw---  1 root   operator   31,   1 Dec 31  1969 pass1
crw---  1 root   operator   31,   2 Dec 31  1969 pass2
crw---  1 root   operator   31,   3 Dec 31  1969 pass3
crw---  1 root   operator   31,   4 Dec 31  1969 pass4
crw-r--r--  1 root   wheel  78,   0 Dec 31  1969 pci
crw---  1 root   wheel  82,   0 Dec 31  1969 ppi0
crw-rw-rw-  1 root   wheel   6,   0 Dec 31  1969 ptyp0
crw-rw-rw-  1 root   wheel   6,   1 Dec 31  1969 ptyp1
crw-rw-rw-  1 root   wheel   6,   2 Dec 31  1969 ptyp2
crw-rw-rw-  1 root   wheel   2,   3 Dec 31  1969 random
crw-rw-rw-  1 root   wheel  22,   2 Dec 31  1969 stderr
crw-rw-rw-  1 root   wheel  22,   0 Dec 31  1969 stdin
crw-rw-rw-  1 root   wheel  22,   1 Dec 31  1969 stdout
crw---  1 root   wheel  12, 128 Dec 31  1969 sysmouse
crw-rw-rw-  1 root   wheel   1,   0 Dec 31  1969 tty
crw---  1 root   wheel  28,   0 Dec 31  1969 ttyd0
crw---  1 root   wheel  28,   1 Dec 31  1969 ttyd1
crw---  1 root   wheel  28,  32 Dec 31  1969 ttyid0
crw---  1 root   wheel  28,  33 Dec 31  1969 ttyid1
crw---  1 root   wheel  28,  64 Dec 31  1969 ttyld0
crw---  1 root   wheel  28,  65 Dec 31  1969 ttyld1
crw--w  1 trish  tty 5,   0 Dec 31  1969 ttyp0
crw--w  1 trish  tty 5,   1 Dec 31  1969 ttyp1
crw--w  1 trish  tty 5,   2 Dec 31  1969 ttyp2
crw---  1 root   wheel  12,   0 Dec 31  1969 ttyv0
crw---  1 root   wheel  12,   1 Dec 31  1969 ttyv1
crw---  1 root   wheel  12,   2 Dec 31  1969 ttyv2
crw---  1 root   wheel  12,   3 Dec 31  1969 ttyv3
crw---  1 root   wheel  12,   4 Dec 31  1969 ttyv4
crw---  1 root   wheel  12,   5 Dec 31  1969 ttyv5
crw---  1 root   wheel  12,   6 Dec 31  1969 ttyv6
crw---  1 root   wheel  12,   7 Dec 31  1969 ttyv7
crw---  1 root   wheel  12,   8 Dec 31  1969 ttyv8
crw---  1 root   wheel  12,   9 Dec 31  1969 ttyv9
crw---  1 root   wheel  12,  10 Dec 31  1969 ttyva
crw---  1 root   wheel  12,  11 Dec 31  1969 ttyvb
crw---  1 root   wheel  12,  12 Dec 31  1969 ttyvc
crw---  1 root   wheel  12,  13 Dec 31  1969 ttyvd
crw---  1 root   wheel  12,  14 Dec 31  1969 ttyve
crw---  1 root   wheel  12,  15 Dec 31  1969 ttyvf
crw-rw-rw-  1 root   wheel   2,   4 Dec 31  1969 urandom
crw-r--r--  1 root   operator  108, 255 Dec 31  1969 usb
crw-r--r--  1 root   operator  108,   0 Dec 31  1969 usb0
lrw-r---w-  1 root   wheel0 Dec 31  1969 vga - /dev/ttyv0
crw---  1 root   operator  104,   

Re: weirdness with devfs? (time)

2000-08-23 Thread Donn Miller

Siobhan Patricia Lynch wrote:
 
 this is cute:
 notice the dates, they predate the epoch.
 
 weird huh? anyone else see this or am I just off my rocker?
 
 -Trish
 
 total 0
 crw-r--r--  1 root   operator  117,   0 Dec 31  1969 acd0a
 crw-r--r--  1 root   operator  117,   2 Dec 31  1969 acd0c
 crw-r-  1 root   operator   15, 0x00010002 Dec 31  1969 cd0
 crw-r-  1 root   operator   15,   2 Dec 31  1969 cd0c
 crw---  1 root   wheel   0,   0 Dec 31  1969 console

Maybe your machine was previously owned by a Woodstock-era hippie?  LOL.

I have no such problems with my -current:

total 42
-r-xr-xr-x   1 root  wheel38814 Aug 19 23:40 MAKEDEV*
-r-xr-xr-x   1 root  wheel 2064 Jul 16 07:49 MAKEDEV.local*
crw-r-   2 root  operator  117,   0 Jul 17 02:20 acd0a
crw-rw-rw-   2 root  operator  117,   2 Jul 17 02:20 acd0c
crw-r-   2 root  operator  117,   8 Jul 17 02:20 acd1a
crw-r-   2 root  operator  117,  10 Jul 17 02:20 acd1c
crw-r-   2 root  operator  116, 0x00010002 Jul 17 02:20 ad0
crw-r-   2 root  operator  116,   0 Jul 17 02:20 ad0a
crw-r-   2 root  operator  116,   1 Jul 17 02:20 ad0b
[snip]


-Donn


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: weirdness with devfs? (time)

2000-08-23 Thread Will Andrews

On Wed, Aug 23, 2000 at 10:28:00AM -0400, Siobhan Patricia Lynch wrote:
   ^
 this is cute:
 notice the dates, they predate the epoch.

They don't predate the epoch.  The epoch starts at 00:00 UTC on January
1, 1970.  Hence, the dates are exactly the epoch (20:00 -0400 UTC on
December 31, 1969).

But you *DO* have a real bug there.. ;-

-- 
Will Andrews [EMAIL PROTECTED] [EMAIL PROTECTED]
GCS/E/S @d- s+:+ a--- C++ UB$ P+ L- E--- W+ N-- !o ?K w---
O- M+ V- PS+ PE++ Y+ PGP t++ 5 X+ R+ tv+ b++ DI+++ D+ 
G++ e h! r- y?


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: weirdness with devfs? (time)

2000-08-23 Thread Sheldon Hearn



On Wed, 23 Aug 2000 10:31:45 -0400, Donn Miller wrote:

 Maybe your machine was previously owned by a Woodstock-era hippie?  LOL.
 
 I have no such problems with my -current:
 
 total 42
 -r-xr-xr-x   1 root  wheel38814 Aug 19 23:40 MAKEDEV*
 -r-xr-xr-x   1 root  wheel 2064 Jul 16 07:49 MAKEDEV.local*

And you're not using DEVFS, so it doesn't really matter whether you have
the problem on your box. :-)

Ciao,
Sheldon.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: weirdness with devfs? (time)

2000-08-23 Thread Siobhan Patricia Lynch

On Wed, 23 Aug 2000, Will Andrews wrote:

 On Wed, Aug 23, 2000 at 10:28:00AM -0400, Siobhan Patricia Lynch wrote:
^
  this is cute:
  notice the dates, they predate the epoch.
 
 They don't predate the epoch.  The epoch starts at 00:00 UTC on January
 1, 1970.  Hence, the dates are exactly the epoch (20:00 -0400 UTC on
 December 31, 1969).
 
 But you *DO* have a real bug there.. ;-


ok I concede, taking into account time zones, yes it is the epoch ;)

however it *is* strange.
 
__

Trish Lynch
FreeBSD - The Power to Serve[EMAIL PROTECTED]
Rush Networking [EMAIL PROTECTED]
---

"Can't let them rape me again
 Your venom's not family here
 won't let them fill me with
 fatalistic remedies"
-Dream Theater, Scarred



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: weirdness with devfs? (time)

2000-08-23 Thread Poul-Henning Kamp

In message [EMAIL PROTECTED], 
Siobhan Patricia Lynch writes:
this is cute:
notice the dates, they predate the epoch.

Because of your timezone.

weird huh? anyone else see this or am I just off my rocker?

crw---  1 root   wheel  12,   0 Dec 31  1969 ttyv0
crw---  1 root   wheel  12,   1 Dec 31  1969 ttyv1
crw---  1 root   wheel  12,   2 Dec 31  1969 ttyv2
crw---  1 root   wheel  12,   3 Dec 31  1969 ttyv3

--
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD coreteam member | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: weirdness with devfs? (time)

2000-08-23 Thread Siobhan Patricia Lynch

On Wed, 23 Aug 2000, Poul-Henning Kamp wrote:

 In message [EMAIL PROTECTED], 
 Siobhan Patricia Lynch writes:
 this is cute:
 notice the dates, they predate the epoch.
 
 Because of your timezone.
 

nod, figured that out already, however, is the epoch date intentional?

__

Trish Lynch
FreeBSD - The Power to Serve[EMAIL PROTECTED]
Rush Networking [EMAIL PROTECTED]
---

"the wood is tired and the wood is old
 we'll make it fine if the weather holds
 but if the weather holds we'll have missed the point
 that's where i need to go"
-Indigo Girls, The Wood Song



To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message



Re: weirdness with devfs? (time)

2000-08-23 Thread Poul-Henning Kamp

In message [EMAIL PROTECTED], 
Siobhan Patricia Lynch writes:
On Wed, 23 Aug 2000, Poul-Henning Kamp wrote:

 In message [EMAIL PROTECTED], 
 Siobhan Patricia Lynch writes:
 this is cute:
 notice the dates, they predate the epoch.
 
 Because of your timezone.
 

nod, figured that out already, however, is the epoch date intentional?

No.

I'm working on that issue right now.

If you look in sys/ufs/ufs/ufs_vnops.c:ufs_spec{read|write}() you will
see that the filesystem "hosting" the device node has to figure out
for itself when to update the ACCESS, UPDATE and CHANGE timestamps
relative to the access to the dev_t through specfs.

Obviously wrong since all device node hosting filesystems (ufs,
ext2fs, devfs cd9660 (well, not really but in principle...)) will
have to duplicate that code.

I'm looking at a patch right now which adds three flag bits to the
dev_t and clone this code into sys/miscfs/specfs() where it will
maintain these three bits.  The hosting filesystem can then examine
just those bits to determine when timestamps should be updated.

The advantage to this scheme is that the drivers themselves can set
these bits when for instance ioctl functions have "updated" or
"accessed" the device.

The secondary advantage is that we don't have to have this code
mutated in multiple filesystems.

--
Poul-Henning Kamp   | UNIX since Zilog Zeus 3.20
[EMAIL PROTECTED] | TCP/IP since RFC 956
FreeBSD coreteam member | BSD since 4.3-tahoe
Never attribute to malice what can adequately be explained by incompetence.


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message