Anon K Adderlan
2008-Sep-13 22:37 UTC
[zfs-code] How do I add my own Attributes to a ZAP object, and then search on it?
How do I add my own Attributes to a ZAP object, and then search on it? For example, I want to be able to attach the gamma value to each image, and be able to search and sort them based on it. From reading the on disk format documentation I''ve been led to believe that this would be done through ZAP objects, but what I really need is a reference to the C/C++ or Shell API, and whoever put together the Administration Guide has for some reason decided that the code segments should be in a white font on a white background. -- This message posted from opensolaris.org
Darren J Moffat
2008-Sep-15 10:00 UTC
[zfs-code] How do I add my own Attributes to a ZAP object, and then search on it?
Anon K Adderlan wrote:> How do I add my own Attributes to a ZAP object, and then search on it? > > For example, I want to be able to attach the gamma value to each image, and be able to search and sort them based on it. From reading the on disk format documentation I''ve been led to believe that this would be done through ZAP objects, but what I really need is a reference to the C/C++ or Shell API, and whoever put together the Administration Guide has for some reason decided that the code segments should be in a white font on a white background.See the openat(2) system call and the runat(1) shell command. -- Darren J Moffat