
PROBLEM: (94496) (PATCH ID: OSF520-830)
********
This patch will display a more informative error message if chfile fails while
trying to enable data logging.
The current error message when "chfile -L on path" fails is:

  Are you trying to activate atomic write data logging on a non-AdvFS file or
  on an AdvFS file which has been memory-mapped via mmap() or which ha a frag?

The new error message depend upon the error that occurred:

1. If directio I/O has been enabled and you issue "chfile -L on path", you
   will see

  Atomic write data logging cannot be enabled with direct I/O

2. If directio I/O is not enabled and you issue "chfile -L on path", you
   will see the old message

  Are you trying to activate atomic write data logging on a non-AdvFS file or
  on an AdvFS file which has been memory-mapped via mmap() or which ha a frag?

3. If an error occurred while we were trying to determine is directI/O
   was enabled, you will see

  Are you trying to activate atomic write data logging on a non-AdvFS file, or
  on an AdvFS file which has direct I/O enabled, or on an AdvFS file which has
  been memory-mapped via mmap() or which has a frag?



