[DRBD-cvs] drbd by phil; [patch by LGE] Get names ob block device...
drbd-user@lists.linbit.com
drbd-user@lists.linbit.com
Wed, 9 Jun 2004 16:18:05 +0200 (CEST)
DRBD CVS committal
Author : phil
Module : drbd
Dir : drbd/drbd/linux
Modified Files:
Tag: rel-0_7-branch
drbd.h
Log Message:
[patch by LGE] Get names ob block devices from kernel if available.
===================================================================
RCS file: /var/lib/cvs/drbd/drbd/drbd/linux/Attic/drbd.h,v
retrieving revision 1.1.2.4
retrieving revision 1.1.2.5
diff -u -3 -r1.1.2.4 -r1.1.2.5
--- drbd.h 7 Jun 2004 10:05:37 -0000 1.1.2.4
+++ drbd.h 9 Jun 2004 14:17:59 -0000 1.1.2.5
@@ -170,6 +170,10 @@
PausedSyncT, // is sync target, but higher priority groups first
} Drbd_CState;
+#ifndef BDEVNAME_SIZE
+# define BDEVNAME_SIZE 32
+#endif
+
struct ioctl_get_config {
struct net_config nconf;
struct syncer_config sconf;
@@ -179,7 +183,9 @@
OUT enum io_error_handler on_io_error;
OUT int meta_device_major;
OUT int meta_device_minor;
- OUT int meta_index;
+ OUT int meta_index;
+ OUT char lower_device_name[BDEVNAME_SIZE];
+ OUT char meta_device_name[BDEVNAME_SIZE];
OUT Drbd_CState cstate;
OUT Drbd_State state;
OUT Drbd_State peer_state;