All:
I am interested in being able to duplicate the functionality
of the Solaris lockfs command on Linux. This command
effectively does the following:
1. Flush all
data in the local file system buffer cache to disk (effectively a synchronous
sync);
2. Halt all
pending I/O to the file system until unlockfs is
issued. (If the file system is mounted hard, all processes attempting to access
the file system simply hang for this period.)
The reason I wish to do this is so that we can do a snapshot
on this file system, and be reasonably sure that the file system will be clean
when this event occurs.
Can this be done with XFS? Any input you might provide would
be appreciated.
Regards,
Jeff