Re: [PATCH] btrfs-progs: make btrfs dev scan multi path aware

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

 





On 04/09/2013 07:12 PM, David Sterba wrote:
On Mon, Apr 08, 2013 at 05:22:38PM +0200, David Sterba wrote:
+	fd = open("/dev/btrfs-control", O_RDWR);
+	e = errno;
+	if (fd < 0) {
+		FILE *mfd = popen("lsmod | grep btrfs", "r");
Please transform this into C.

Actually, what if btrfs is not built as a module? There should be another
way to detect that btrfs is compiled in, like opening the control device
and reading something back.

yeah sorry i missed it. Thanks. Let me followup in the latest
patch of this.

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