It is as portable as assuming that the directory entries are synced during
fsync().
>
> How USEFUL is it to the application if all other boxen fsync() the
> directory entries along with the file?
Except, you can NOT guarantee that this is the case. The spec does NOT
require it.
> You want to sync the files, but the directory only after you created all
> of the files? Use fdatasync(2) for the files - it doesn't flush meta
> data, then sync the directory. It's POSIX, it's SUS v2.
Is fsync(dir) what you mean here?
mrc
-- Mike Castle dalgoda@ix.netcom.com www.netcom.com/~dalgoda/ We are all of us living in the shadow of Manhattan. -- Watchmen fatal ("You are in a maze of twisty compiler features, all different"); -- gcc - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/