Can someone tell me what exactly is the purpose of ufs logging? I have
somewhat of an idea: You want to log transactions/changes into a log
file. But, at the O/S level, what kinds of tranactions are we talking
about? I know that, in an Oracle database, you have redo log files,
which stores changes that was made, at a point in time, in a database,
which are transactions, I believe. Now, is this a similiar concept of
ufs logging? I'd appreciate some intelligent feedback. Thank you.
"Dominick DiMantova" <domi...@cyberspace.org> wrote in message
news:f222f979.0301...@posting.google.com...
> Can someone tell me what exactly is the purpose of ufs logging? I have
It's to reduce (or eliminate entirely) the time required for
an fsck should a file system go down unexpectedly (e.g.,
a power cut).
> somewhat of an idea: You want to log transactions/changes into a log
> file. But, at the O/S level, what kinds of tranactions are we talking
Changes to files and their permissions. E.g., chmod and chown.
--
Rich Teer
President,
Rite Online Inc.
Voice: +1 (250) 979-1638
URL: http://www.rite-online.net
A filesystem is really quite similar to a database in several ways.
Like a database, it has sections of data that are related to each other,
and must be updated "atomically" to maintain consistency.
This usually occurs with the creation or removal of files. When you
create a file, the OS must..
Take a free inode and allocate it.
Populate the inode and point to the data block(s).
Create an entry in a directory, and point to the inode.
So, this could be considered a filesystem transaction. The UFS logging
support can replay the entire sequence if needed after a crash.
--
Darren Dunham ddu...@taos.com
Unix System Administrator Taos - The SysAdmin Company
Got some Dr Pepper? San Francisco, CA bay area
< This line left intentionally blank to confuse you. >