Re: [PATCH 1/1] btrfs: log, when replace, is canceled by the user

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

 





+
+	btrfs_info(fs_info, "dev_replace from %s (devid %llu) to %s canceled",
+		   btrfs_dev_name(src_device), src_device->devid,
+		   rcu_str_deref(tgt_device->name));

The behavior is quite good.

Although I'm wondering why for @src_device we use btrfs_dev_name() but
rcu_str_deref() for @tgt_device?

  Thanks for the comments.
  My bad. In fact, I must use btrfs_dev_name() for tgt_device since
  the tgt_device can be missing (-o degraded) when the user decides
  to cancel.

Thanks, Anand
--
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