diff options
| author | Nikolay Borisov <[email protected]> | 2018-10-30 16:43:26 +0200 |
|---|---|---|
| committer | David Sterba <[email protected]> | 2018-12-17 14:51:38 +0100 |
| commit | d1a63002829a4d8014de20dc141b404cc808405e (patch) | |
| tree | 0734637651debfcf49ac8c20c8711a4924d131bd /fs/btrfs/dev-replace.h | |
| parent | fbc6feaec98ac0c6a615bbe9e17c5689a1a84650 (diff) | |
btrfs: add members to fs_devices to track fsid changes
In order to gracefully handle split-brain scenario during fsid change
(which are very unlikely, yet possible), two more pieces of information
will be necessary:
1. The highest generation number among all devices registered to a
particular btrfs_fs_devices
2. A boolean flag whether a given btrfs_fs_devices was created by a
device which had the FSID_CHANGING_V2 flag set.
This is a preparatory patch and just introduces the variables as well
as code which sets them, their actual use is going to happen in a later
patch.
Signed-off-by: Nikolay Borisov <[email protected]>
Reviewed-by: David Sterba <[email protected]>
Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/dev-replace.h')
0 files changed, 0 insertions, 0 deletions