Re: [PATCH 2/4] storage: Cast uid_t|gid_t to unsigned int

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

 



On 02/22/2013 09:43 AM, Philipp Hahn wrote:
> uid_t and gid_t are opaque types, ranging from s32 to u32 to u64.

Technically, I've never seen a platform with uid_t or gid_t being u64 -
that's still theoretical at this time.  However, since pid_t is 64-bit
on mingw64, and since id_t is the union of [pug]id_t and therefore also
a 64-bit type, I agree with this commit.

Note that we have a compile-time assertion that on all platforms where
libvirt is currently compiling, that sizeof(uid_t) <= sizeof(int)
(likewise for gid_t).  We'd have a LOT more code to clean up if we ever
encounter a platform with u64 [ug]id_t.

Still, since your commit has already been pushed, we can't touch up the
commit message now.  And ACK to your change.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]