After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 749401 - [review] dcbw/dfa-early-2: more mergable pieces of devices-for-all
[review] dcbw/dfa-early-2: more mergable pieces of devices-for-all
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: general
unspecified
Other Linux
: Normal normal
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks: nm-review
 
 
Reported: 2015-05-14 22:22 UTC by Dan Williams
Modified: 2015-05-19 14:31 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Dan Williams 2015-05-14 22:22:17 UTC
Another round of easily isolated commits from dcbw/devices-for-all-1.
Comment 1 Thomas Haller 2015-05-15 16:31:33 UTC
>> core: earlier software capability detection
   

     /* properties */
+    g_object_class_install_property
+         (object_class, PROP_IS_PARTITION,
+          g_param_spec_boolean (NM_DEVICE_INFINIBAND_IS_PARTITION, "", "",
+                                FALSE,
+                                G_PARAM_READWRITE | G_PARAM_CONSTRUCT |
+                                G_PARAM_STATIC_STRINGS));
 

CONSTRUCT_ONLY




>> platform: move InfiniBand property reading into the platform


infiniband_get_info() does more then just reading sysctl. Nice. But I think you should do:

»···if (nm_rtnl_link_parse_info_data (priv->nlh,
»···                                  ifindex,
»···                                  infiniband_info_data_parser,
»···                                  &info) != 0) {
                                            ^^^^^



>> settings: shortcut nm_settings_get_connection_by_uuid() if @uuid is invalid
    
I think this patch should be dropped. When I changed nm_utils_uuid_generate() to create valid UUIDs I had patches to enforce valid UUIDs. We (rightly) agreed,
that we accept basically every string. But then this patch is wrong.



Rest LGTM
Comment 2 Dan Williams 2015-05-18 17:31:33 UTC
(In reply to Thomas Haller from comment #1)
> >> core: earlier software capability detection
>    
> 
>      /* properties */
> +    g_object_class_install_property
> +         (object_class, PROP_IS_PARTITION,
> +          g_param_spec_boolean (NM_DEVICE_INFINIBAND_IS_PARTITION, "", "",
> +                                FALSE,
> +                                G_PARAM_READWRITE | G_PARAM_CONSTRUCT |
> +                                G_PARAM_STATIC_STRINGS));
>  
> 
> CONSTRUCT_ONLY

Fixed.

> >> platform: move InfiniBand property reading into the platform
> 
> 
> infiniband_get_info() does more then just reading sysctl. Nice. But I think
> you should do:
> 
> »···if (nm_rtnl_link_parse_info_data (priv->nlh,
> »···                                  ifindex,
> »···                                  infiniband_info_data_parser,
> »···                                  &info) != 0) {

Fixed.

> >> settings: shortcut nm_settings_get_connection_by_uuid() if @uuid is invalid
>     
> I think this patch should be dropped. When I changed
> nm_utils_uuid_generate() to create valid UUIDs I had patches to enforce
> valid UUIDs. We (rightly) agreed,
> that we accept basically every string. But then this patch is wrong.

Dropped.

Repushed!
Comment 3 Thomas Haller 2015-05-18 20:24:28 UTC
LGTM
Comment 4 Dan Williams 2015-05-19 14:31:22 UTC
Thanks, merged to master.