xfs
[Top] [All Lists]

using dmapi to sync filesystems (was using xfsdump...)

To: Linux XFS Mailing List <linux-xfs@xxxxxxxxxxx>
Subject: using dmapi to sync filesystems (was using xfsdump...)
From: Matthijs van der Klip <matthijs.van.der.klip@xxxxxx>
Date: Fri, 7 Dec 2001 20:40:13 +0100
Sender: owner-linux-xfs@xxxxxxxxxxx
Hi,

Some days ago I submitted a crazy idea to sync some filesystems through
the use of xfsdump. As I already expected this was not really a viable
solution. Someone (Seth Mos) however pointed me to DMAPI. I have already
done some research on it but need some info from people who know DMAPI and
I think I can find those people on this list... :)

I would like to try to create an app that does the following:

1) Register with dmapi.
2) Tell dmapi I want to receive events when directory entries on a certain
   filesystem are added/deleted.
3) On receipt of an event append the absolute path of the modified
   directory to a logfile.


>From what I've read about DMAPI I think this should be possible and not
particularly very hard to achieve even. However I'm not an experienced C
programmer, so I'd be thankful if someone would give me some hints, tips,
pseudo code or whatever else that can help me.

The XDSM standard at http://www.opengroup.org/onlinepubs/9657099/toc.htm
tells me to call 'dm_init_service' before doing anything else. I can not
find any reference to this function in the source of xfsdump however. Can
anyone perhaps give me a short list of needed functions calls needed for
above functionality?


Thanks in advance,

-- 
Matthijs van der Klip - Unix Administrator
NOS - Dutch Public Broadcasting Organisation
http://www.omroep.nl


<Prev in Thread] Current Thread [Next in Thread>