Fix pseudofs readdir method

readdir method of pseudofs expects that the first direntry should have
index 2. This may not be true if we remove export entries due to remove
export dbus command! Use avltree_first() and skip entries that are
before the seek location.

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Acked-by: Frank S. Filz <ffilzlnx@mindspring.com>
Handle EXPORT_OPTION_COMMIT if FSAL_O_SYNC is not honored

FSAL_O_SYNC is not always honored, so just setting FSAL_O_SYNC has no
guaranty that this write will be a stable write. Instead, we pretend
that the caller asked for the stable write!

Signed-off-by: Malahal Naineni <malahal@us.ibm.com>
Acked-by: Marc Eshel <eshel@us.ibm.com>
Merge branch 'tp/pseudo.readdir' into ibm_next_20_tmp