Re: Remount read-only and fstrans

2017-02-19 Thread J. Hannken-Illjes
> On 19 Feb 2017, at 18:08, Christos Zoulas wrote: > > In article , > J. Hannken-Illjes wrote: >> >> Comments or objections anyone? > > Will that detect open for write file descriptors to removed files? This is the job of vflush(). Since Rev. 1.46 of vfs_mount.c (2017/01/27) it handles both

Re: Remount read-only and fstrans

2017-02-19 Thread Christos Zoulas
In article , J. Hannken-Illjes wrote: > >Comments or objections anyone? Will that detect open for write file descriptors to removed files? christos

Re: Remount read-only and fstrans

2017-02-19 Thread Taylor R Campbell
> Date: Sun, 19 Feb 2017 11:15:54 +0100 > From: "J. Hannken-Illjes" > > Plan is to suspend the file system while the mounted file system > gets updated. This way no operations run on the mounted file > system during update and all operations see the state before or > after the update. > [...] >

Remount read-only and fstrans

2017-02-19 Thread J. Hannken-Illjes
Updating a mounted file system from read-write to read-only is racy as it is not clear when a mounted file system is read-only. Currently we set MNT_RDONLY before we call VFS_MOUNT(). If VFS_MOUNT() fails some operations may see the mounted file system read-only but this was never the case. Even