A data storage system using flash storage maintains a status indicator
corresponding to data written into the flash storage. The status indictor
of the data indicates whether a disruption, such as a power disruption or
a device disconnection, occurred when the data was being written into the
flash storage. The data storage system determines whether the data may be
corrupted based on one or more of the status indictors. The data storage
system may make this determination at a selected time or after a power-up
of the data storage system. If the data is determined to possibly be
corrupted, the data storage system may optionally discard the corrupted
data from the flash storage or flag the corrupted data for future
removal.