Conversion between OnDisk and InMemory Representation

Two conversion functions are available to switch between the on-disk and the in-memory representation: ext3_acl_to_disk and ext3_acl_from_disk. Both are implemented in fs/ext3/acl.c.

The latter one takes the raw data as read from the information contained in the extended inode, strips off the header, and converts the data from little endian format into a format suitable for the system's CPU for every entry in the list of ACLs.

The counterpart ext3_acl_to_disk works similarly: It iterates over all entries of a given instance of posix_acl and converts the contained data from the CPU-specific format to little endian numbers with appropriate lengths.

Continue reading here: Inode Initialization

Was this article helpful?

0 0