Hi Daniel, On 02/17, Daniel Black wrote: > I was looking at Documentation/filesystems/f2fs.txt trying to work out > how to do atomic writes. > > I did find https://www.spinics.net/lists/kernel/msg1839691.html which > contains some elements. > > It seems F2FS_IOC_DB_OPEN might been replaced by > F2FS_IOC_START_ATOMIC_WRITE looking at fs/f2fs/f2fs.h > > I'd really like some documentation to be written in filesystems/f2fs.txt > to aid the use of features that have been so diligently developed.
Agreed that we need to describe it in f2fs.txt, and let me add the work in our TODO list. > I'd also like to know what happens when the atomic write size gets too big. I didn't test large atomic writes a lot, since we enabled and have tested it in sqlite under Android products, which triggers small atomic writes across lots of different db files. In current design, there is no limit on the size of atomic writes. And it handles basic errors like ENOMEM or EIO during commit. > After that perhaps it can be used in application like other storage > systems e.g. https://jira.mariadb.org/browse/MDEV-11417 Quite interesting! Yup, I thought that there would be many use-cases of this feature. But I've not been able to dive into other scenarios seriously, since application needs to be modified; sqlite was quite easy for me to change tho. Thanks, > > Keep up the good work. > > Cheers, > > Daniel Black > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Linux-f2fs-devel mailing list > Linux-f2fs-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot _______________________________________________ Linux-f2fs-devel mailing list Linux-f2fs-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-f2fs-devel