Bug 5812

Summary: File information should include permissions, owner and group
Product: [Build System, Metadata & Runtime] Toaster Reporter: Belen Barros Pena <belen.barros.pena>
Component: toasterAssignee: Alexandru Damian <alexandru.damian>
Status: VERIFIED FIXED QA Contact: Mihail Stanciu <stanciux.mihail>
Severity: enhancement    
Priority: Medium CC: alexandru.damian, andreea.b.proca, belen.barros.pena, cristiana.voicu, dave.lerner, stanciux.mihail
Version: unspecified   
Target Milestone: 1.6 M5   
Hardware: All   
OS: Multiple   
Whiteboard: GUI; needs data completion test
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Belen Barros Pena 2014-02-11 12:47:34 UTC
We need to store permissions, owner and group information for each file in the Toaster database, like build history does in files-in-image.txt, in order to show them in the directory structure page. See 

http://www.yoctoproject.org/toaster/image-information-dir.html
Comment 1 Dave Lerner 2014-02-15 15:40:51 UTC
Some related additional constraints and missing image information include:
1) the 'linked-to' entry for sym-linked directories and files,
2) either the actual resolved user name and group name or else a tables that resolve user-id's and group-id's to user names and group names,
3) the same data for directories as well as files - the  Package_File model only has files and not directories.
Comment 2 Dave Lerner 2014-02-17 20:46:40 UTC
More additional fields required by the spec:
inode type - regular, directory, symlink, socket, fifo, character, block, symblink

A field that is needed for an efficient view query:
parent_directory_path
Comment 3 Alexandru Damian 2014-02-20 11:51:03 UTC
Table added. Needs data completion test.
Comment 4 Alexandru Damian 2014-03-11 12:47:17 UTC
Database schema merged into origin/master
Comment 5 Belen Barros Pena 2014-04-23 16:59:06 UTC
The 1.6 version of the image directory structure page contains this information, so marking this one as resolved.
Comment 6 Mihail Stanciu 2014-07-25 13:05:13 UTC
Verified.