News: 0001492555

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

XFS With Linux 6.12 Adds New Ioctls To Exchange Contents Of Two Files

([Linux Storage] 5 Hours Ago XFS)


The XFS file-system changes have been merged for the Linux 6.12 kernel and introduce new ioctls for being able to exchange the contents of two files.

The XFS file-system driver in Linux 6.12 adds the XFS_IOC_START_COMMIT and XFS_IOC_COMMIT_RANGE ioctls to manage atomic updates to file contents. The commit ioctl is similar to the existing XFS_IOC_EXCHANGE_RANGE but enforces that the file cannot have been changed since the sampling point.

The code comment for the new interface sums it up as:

"Using the same definition of file2 as struct xfs_exchange_range, commit the contents of file1 into file2 if file2 has the same inode number, mtime, and ctime as the arguments provided to the call. The old contents of file2 will be moved to file1."

The rest of the XFS changes for Linux 6.12 amount to an assortment of bug fixes.

More details on the XFS updates via [1]this pull that landed today into Linux 6.12 Git.



[1] https://lore.kernel.org/linux-xfs/172672320483.1036593.10886085851542621957.pr-tracker-bot@kernel.org/T/#t



intelfx

WileEPyote

uid313

dekernel

emansom

PuckPoltergeist

skeevy420

Brandy Davis, an outfielder and teammate of mine with the Pittsburgh Pirates,
is my choice for team captain. Cincinnati was beating us 3-1, and I led
off the bottom of the eighth with a walk. The next hitter banged a hard
single to right field. Feeling the wind at my back, I rounded second and
kept going, sliding safely into third base.
With runners at first and third, and home-run hitter Ralph Kiner at
bat, our manager put in the fast Brandy Davis to run for the player at first.
Even with Kiner hitting and a change to win the game with a home run, Brandy
took off for second and made it. Now we had runners at second and third.
I'm standing at third, knowing I'm not going anywhere, and see Brandy
start to take a lead. All of a sudden, here he comes. He makes a great slide
into third, and I scream, "Brandy, where are you going?" He looks up, and
shouts, "Back to second if I can make it."
-- Joe Garagiola, "It's Anybody's Ball Game"