Subject: Re: /var/db/btdev.xml (from source-changes)
To: Iain Hibbert <>
From: Jason Thorpe <>
List: tech-userlevel
Date: 07/28/2006 12:58:22
On Jul 28, 2006, at 12:24 AM, Iain Hibbert wrote:

> I'm fairly easy as to the location, though I dont really consider XML
> to be humanly readable so I left it out of /etc.

Also, just a nit, XML property list file names should end in  
".plist", not ".xml" :-)

> Is all of /var considered ephemeral or is it just /var/db?  In  
> reality how
> likely is it that this will be lost? (do people use mfs for /var?)

Actually, there's lots of important stuff in /var.

According to hier(7):

                 db/        miscellaneous automatically generated  
                            cific database files, and persistent  
files used in
                            the maintenance of third party software.

                            pkg          default location for  
metadata related
                                         to third party software  
packages.  See
                                         pkg_install(1) for more  
details of the
                                         NetBSD Packages Collection,  
or pkgsrc.

So, seems like /var/db is a fine place to put your BT device  
connection information.  I don't see any need for it to change  
(except for the file name to end in ".plist" :-)

The only part of /var that is cleared out at reboot is /var/run.

-- thorpej