* [ANNOUNCE v2] work tree for untorn filesystem writes
@ 2024-11-06 0:57 Darrick J. Wong
2024-11-06 9:50 ` Christian Brauner
0 siblings, 1 reply; 4+ messages in thread
From: Darrick J. Wong @ 2024-11-06 0:57 UTC (permalink / raw)
To: brauner
Cc: Ritesh Harjani (IBM), John Garry, Catherine Hoang, linux-ext4,
Theodore Ts'o, Jan Kara, Christoph Hellwig, Ojaswin Mujoo,
linux-block, Dave Chinner, linux-kernel, linux-xfs, linux-fsdevel
Hi everyone,
Here's a slightly updated working branch for the filesystem side of
atomic write changes for 6.13:
https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git/log/?h=fs-atomic_2024-11-05
This branch is, like yesterday's, based off of axboe's
for-6.13/block-atomic branch:
https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/log/?h=for-6.13/block-atomic
The only difference is that I added Ojaswin's Tested-by: tags to the end
of the xfs series. I have done basic testing with the shell script at
the end of this email and am satisfied that it at least seems to do the
(limited) things that I think we're targeting for 6.13.
Christian: Could you pull this fs-atomic branch into your vfs.git work
for 6.13, please? Or would you rather I ask rothwell to include this
branch into for-next/fs-next and send the PR to Linus myself?
(Actually I might just ask rothwell to do that tomorrow regardless...)
--D
#!/bin/bash -x
# Mess around with atomic writes via scsi_debug
mnt=/opt
true "${FSTYP:=xfs}"
true "${MIN_ATOMIC:=32768}"
true "${SECTOR_SIZE:=512}"
true "${FSBLOCK_SIZE:=4096}"
umount $mnt
rmmod "$FSTYP"
rmmod scsi_debug
modprobe scsi_debug atomic_wr=1 dev_size_mb=300 \
SECTOR_SIZE=$SECTOR_SIZE \
atomic_wr_align=$((MIN_ATOMIC / SECTOR_SIZE)) \
atomic_wr_gran=$((MIN_ATOMIC / SECTOR_SIZE))
sleep 1
dev="$(readlink -m /dev/disk/by-id/wwn-0x3333333000*)"
sysfs=/sys/block/$(basename "$dev")
sysfs-dump $sysfs/queue/atomic_write_*
for ((i = 9; i < 20; i++)); do
xfs_io -d -c "pwrite -b 1m -V 1 -AD $((2 ** i)) $((2 ** i))" $dev
done
case "$FSTYP" in
"xfs")
mkfs.xfs -f $dev -b size=$MIN_ATOMIC
;;
"ext4")
mkfs.ext4 -F $dev -b $FSBLOCK_SIZE -C $MIN_ATOMIC -O bigalloc
;;
*)
echo "$FSTYP: not recognized"
exit 1
;;
esac
mount $dev $mnt
xfs_io -f -c 'falloc 0 1m' -c fsync $mnt/a
filefrag -v $mnt/a
for ((i = 9; i < 20; i++)); do
xfs_io -d -c "pwrite -b 1m -V 1 -AD $((2 ** i)) $((2 ** i))" $mnt/a
done
# does not support buffered io
xfs_io -c "pwrite -b 1m -V 1 -AD 0 $MIN_ATOMIC" $mnt/a
# does not support unaligned directio
xfs_io -c "pwrite -b 1m -V 1 -AD $SECTOR_SIZE $MIN_ATOMIC" $mnt/a
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ANNOUNCE v2] work tree for untorn filesystem writes
2024-11-06 0:57 [ANNOUNCE v2] work tree for untorn filesystem writes Darrick J. Wong
@ 2024-11-06 9:50 ` Christian Brauner
2024-11-06 16:15 ` Darrick J. Wong
2024-11-07 13:49 ` Carlos Maiolino
0 siblings, 2 replies; 4+ messages in thread
From: Christian Brauner @ 2024-11-06 9:50 UTC (permalink / raw)
To: Darrick J. Wong
Cc: Ritesh Harjani (IBM), John Garry, Catherine Hoang, linux-ext4,
Theodore Ts'o, Jan Kara, Christoph Hellwig, Ojaswin Mujoo,
linux-block, Dave Chinner, linux-kernel, linux-xfs, linux-fsdevel
On Tue, Nov 05, 2024 at 04:57:40PM -0800, Darrick J. Wong wrote:
> Hi everyone,
>
> Here's a slightly updated working branch for the filesystem side of
> atomic write changes for 6.13:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git/log/?h=fs-atomic_2024-11-05
>
> This branch is, like yesterday's, based off of axboe's
> for-6.13/block-atomic branch:
>
> https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/log/?h=for-6.13/block-atomic
>
> The only difference is that I added Ojaswin's Tested-by: tags to the end
> of the xfs series. I have done basic testing with the shell script at
> the end of this email and am satisfied that it at least seems to do the
> (limited) things that I think we're targeting for 6.13.
>
> Christian: Could you pull this fs-atomic branch into your vfs.git work
> for 6.13, please?
Of course!
I did git pull fs-atomic_2024-11-05 from your tree. It should show up in
-next tomorrow.
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ANNOUNCE v2] work tree for untorn filesystem writes
2024-11-06 9:50 ` Christian Brauner
@ 2024-11-06 16:15 ` Darrick J. Wong
2024-11-07 13:49 ` Carlos Maiolino
1 sibling, 0 replies; 4+ messages in thread
From: Darrick J. Wong @ 2024-11-06 16:15 UTC (permalink / raw)
To: Christian Brauner
Cc: Ritesh Harjani (IBM), John Garry, Catherine Hoang, linux-ext4,
Theodore Ts'o, Jan Kara, Christoph Hellwig, Ojaswin Mujoo,
linux-block, Dave Chinner, linux-kernel, linux-xfs, linux-fsdevel
On Wed, Nov 06, 2024 at 10:50:21AM +0100, Christian Brauner wrote:
> On Tue, Nov 05, 2024 at 04:57:40PM -0800, Darrick J. Wong wrote:
> > Hi everyone,
> >
> > Here's a slightly updated working branch for the filesystem side of
> > atomic write changes for 6.13:
> >
> > https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git/log/?h=fs-atomic_2024-11-05
> >
> > This branch is, like yesterday's, based off of axboe's
> > for-6.13/block-atomic branch:
> >
> > https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/log/?h=for-6.13/block-atomic
> >
> > The only difference is that I added Ojaswin's Tested-by: tags to the end
> > of the xfs series. I have done basic testing with the shell script at
> > the end of this email and am satisfied that it at least seems to do the
> > (limited) things that I think we're targeting for 6.13.
> >
> > Christian: Could you pull this fs-atomic branch into your vfs.git work
> > for 6.13, please?
>
> Of course!
>
> I did git pull fs-atomic_2024-11-05 from your tree. It should show up in
> -next tomorrow.
Yay, thank you!!
--D
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [ANNOUNCE v2] work tree for untorn filesystem writes
2024-11-06 9:50 ` Christian Brauner
2024-11-06 16:15 ` Darrick J. Wong
@ 2024-11-07 13:49 ` Carlos Maiolino
1 sibling, 0 replies; 4+ messages in thread
From: Carlos Maiolino @ 2024-11-07 13:49 UTC (permalink / raw)
To: Christian Brauner
Cc: Darrick J. Wong, Ritesh Harjani (IBM), John Garry,
Catherine Hoang, linux-ext4, Theodore Ts'o, Jan Kara,
Christoph Hellwig, Ojaswin Mujoo, linux-block, Dave Chinner,
linux-kernel, linux-xfs, linux-fsdevel
On Wed, Nov 06, 2024 at 10:50:21AM +0100, Christian Brauner wrote:
> On Tue, Nov 05, 2024 at 04:57:40PM -0800, Darrick J. Wong wrote:
> > Hi everyone,
> >
> > Here's a slightly updated working branch for the filesystem side of
> > atomic write changes for 6.13:
> >
> > https://git.kernel.org/pub/scm/linux/kernel/git/djwong/xfs-linux.git/log/?h=fs-atomic_2024-11-05
> >
> > This branch is, like yesterday's, based off of axboe's
> > for-6.13/block-atomic branch:
> >
> > https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/log/?h=for-6.13/block-atomic
> >
> > The only difference is that I added Ojaswin's Tested-by: tags to the end
> > of the xfs series. I have done basic testing with the shell script at
> > the end of this email and am satisfied that it at least seems to do the
> > (limited) things that I think we're targeting for 6.13.
> >
> > Christian: Could you pull this fs-atomic branch into your vfs.git work
> > for 6.13, please?
>
> Of course!
>
> I did git pull fs-atomic_2024-11-05 from your tree. It should show up in
> -next tomorrow.
I just saw this message Christian, please ignore my previous email, my
apologies.
Carlos
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-11-07 13:49 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-06 0:57 [ANNOUNCE v2] work tree for untorn filesystem writes Darrick J. Wong
2024-11-06 9:50 ` Christian Brauner
2024-11-06 16:15 ` Darrick J. Wong
2024-11-07 13:49 ` Carlos Maiolino
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox