diff options
Diffstat (limited to 'device_mapper/ioctl/libdm-iface.c')
-rw-r--r-- | device_mapper/ioctl/libdm-iface.c | 49 |
1 files changed, 0 insertions, 49 deletions
diff --git a/device_mapper/ioctl/libdm-iface.c b/device_mapper/ioctl/libdm-iface.c index 536e4b238..a2a56be45 100644 --- a/device_mapper/ioctl/libdm-iface.c +++ b/device_mapper/ioctl/libdm-iface.c @@ -2209,52 +2209,3 @@ void dm_lib_exit(void) _version_ok = 1; _version_checked = 0; } - -#if defined(__GNUC__) -/* - * Maintain binary backward compatibility. - * Version script mechanism works with 'gcc' compatible compilers only. - */ - -/* - * This following code is here to retain ABI compatibility after adding - * the field deferred_remove to struct dm_info in version 1.02.89. - * - * Binaries linked against version 1.02.88 of libdevmapper or earlier - * will use this function that returns dm_info without the - * deferred_remove field. - * - * Binaries compiled against version 1.02.89 onwards will use - * the new function dm_task_get_info_with_deferred_remove due to the - * #define. - * - * N.B. Keep this function at the end of the file to make sure that - * no code in this file accidentally calls it. - */ - -int dm_task_get_info_base(struct dm_task *dmt, struct dm_info *info); -int dm_task_get_info_base(struct dm_task *dmt, struct dm_info *info) -{ - struct dm_info new_info; - - if (!dm_task_get_info(dmt, &new_info)) - return 0; - - memcpy(info, &new_info, offsetof(struct dm_info, deferred_remove)); - - return 1; -} - -int dm_task_get_info_with_deferred_remove(struct dm_task *dmt, struct dm_info *info); -int dm_task_get_info_with_deferred_remove(struct dm_task *dmt, struct dm_info *info) -{ - struct dm_info new_info; - - if (!dm_task_get_info(dmt, &new_info)) - return 0; - - memcpy(info, &new_info, offsetof(struct dm_info, internal_suspend)); - - return 1; -} -#endif |