jwk404 commented on this pull request.


> +{
+       nvlist_t        *nvl = NULL;
+       int             err;
+
+       err = nvlist_alloc(&nvl, NV_UNIQUE_NAME, 0);
+       if (err != 0)
+               return (err);
+
+       (void) nvlist_add_boolean_value(nvl, A_READONLY, 1);
+
+       if (fname == NULL) {
+               err = fsetattr(fildes, XATTR_VIEW_READWRITE, nvl);
+       } else {
+               err = setattrat(fildes, XATTR_VIEW_READWRITE, fname, nvl);
+       }
+       if (err < 0) {

If you think there's a good chance this code will be enhanced in the near 
future I'm happy  to have it there - otherwise I'd say minimize it.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openzfs/openzfs/pull/392#discussion_r120888286
------------------------------------------
openzfs-developer
Archives: 
https://openzfs.topicbox.com/groups/developer/discussions/Tb6ca17b06450145d-M37cae38d5dbfaada02adc634
Powered by Topicbox: https://topicbox.com

Reply via email to