af_transact(3) Attribute Filesystem (AtFS) af_transact(3)NAME
af_transaction, af_commit, af_abort - a simple transaction mechanism for AtFS
SYNOPSIS
#include <atfs.h>
int af_transaction (void)
int af_commit (void)
int af_abort (void)
DESCRIPTION
These functions implement a simple transaction mechanism for AtFS. A transaction starts with calling af_transaction. All changes to exist-
ing ASOs performed hereafter have no immediate permanent effect. They rather get into effect, when the transaction is ended. Calling
af_commit ends the transactions and causes all changes to be saved to disk. af_abort aborts the transaction without saving the changes.
These will then be discarded.
Only modification of the state of existing source ASOs will be deferred. Creation or deletion of ASOs have immediate effect, regardless if
a transaction is in effect or not. Additionally, all operations on derived ASOs (all operations on the derived object cache) are not
affected by the transaction.
All archive files that are to be changed when the transaction is finished are locked until the end of the transaction. The lock prevents
all other applications to perform any modifications on the archive file. You should make sure, that ending a transaction should never be
dependent on the successful termination of another application (deadlock danger).
DIAGNOSTICS
Upon error, -1 is returned and af_errno is set to the corresponding error number.
BUGS
Changes to the contents of busy versions have immediate effect.
AtFS-1.71 Fri Jun 25 14:33:21 1993 af_transact(3)
I have 25 transaction files that need to be put into one file and have the date of the file appended at the end of the line, anyone got a one liner or simple script to help me out
thanks
- Ed (4 Replies)
Hi
I am new to this forum.I need a help in the following:
We receve pipe delimited file with
transaction ID,tran_date,Quest_cd,Ans_cd,ans_value.
Same transaction ID can be repeated with different quest_cd and ans_cd.
Basically I need to check if a perticular pair of quest_cd and ans_cd (say... (13 Replies)
HI Guys
whenever i post a transaction , abcd.in file is stored in the temp and vanishes when the transaction is compleated . the abcd.in file stays for 1 sec in temp is der any solution to capture the abcd.in file to another directory
cp -r /tmp/abcd.in /tmp/smith.in
when i used the... (1 Reply)
Wondering if someone can help with my task of identifying missing detail lines in transactions.
I have a flat file that contains transaction header, transaction detail, and transaction trailer lines. These lines are identified with a 5-character line identifier "THEAD", "TDETL", and "TTAIL" at... (2 Replies)
Hi guys, I was wondering if someone can give me a hand in helping me append transaction header line in a file at the end of the transaction detail lines.
Basically, I have a file that looks like this:
FHEAD File1
THEAD TRANS1-blah
TDETL HI1
TDETL HI2
TDETL HI3
TTAIL TRANS1-blah
THEAD... (3 Replies)
We have very large transaction logs that have transactions which start with a line that starts with 'Begin :' and ends with a line that starts with 'End :'. For most transactions there is valid data between those two lines.
I am trying to get rid of lines that look like this:
Begin :... (11 Replies)
HI,
Can anyone explain me the concept behind ZFS transactional semantics (either a transaction is entirely commited or it is not)? so data and disk failures are reduced. (5 Replies)
Hi,
I have an issue where i need to lookup in a given transaction file and if the same transaction is found in another file, then i need to replace a few columns with some other value.
Finally, the changed and unchanged lines must be printed and stored in the same source file.
for example... (5 Replies)
Hi All,
I have transaction in one file.I want to match that to another file and find the number of time the transaction is available on the other file.I need to take each record from TRANSFILE and match that with SPEND FILE and find the number of counts of the transaction
TRANSFILE:
... (4 Replies)