Hi,
Thank you for help.
I am seeing a strange behavior when fsync()ing a directory.
Here is what I do
for (i=0; i < 100,000, i++){
.
mkdir(p/child_i)
fsync(p)
}
Btrfs seems to achieve around 100k fsycs/second, which makes me believe it
is not touching the disk during these fsyncs.
After looking at the code, it seems indeed that fsync adds the inode to the
current transaction but does not sync the transaction to disk.
Is this the intended behavior for metadata fsync or is this a bug?
Is this POSIX compliant?
Thank you for your help
-samer
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs"
in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html