Re: [PATCH v3] btrfs: print error if primary super block write fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 02, 2018 at 11:19:59AM -0800, Howard McLauchlan wrote:
> On 02/02/2018 11:09 AM, Howard McLauchlan wrote:
> > Presently, failing a primary super block write but succeeding in at
> > least one super block write in general will appear to users as if
> > nothing important went wrong. However, upon unmounting and re-mounting,
> > the file system will be in a rolled back state. This was discovered
> > with a BCC program that uses bpf_override_return() to fail super block
> > writes.
> > 
> > This patch outputs an error clarifying that the primary super block
> > write has failed, so users can expect potentially erroneous behaviour.
> > It also forces wait_dev_supers() to return an error to its caller if
> > the primary super block write fails.
> > 
> > Signed-off-by: Howard McLauchlan <hmclauchlan@xxxxxx>
> Reviewed-by: Qu Wenruo <wqu@xxxxxxxx>

Added to next, thanks.
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux Filesystem Development]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux