Bug 4346

Summary: View and navigate the full directory structure of built images
Product: [Build System, Metadata & Runtime] Toaster Reporter: Belen Barros Pena <belen.barros.pena>
Component: toasterAssignee: Dave Lerner <dave.lerner>
Status: VERIFIED FIXED QA Contact: Yuan Sun <Yuan.Sun2>
Severity: enhancement    
Priority: Medium+ CC: alexandru.damian, dave.lerner, david.reyna, jessica.zhang, Yuan.Sun2
Version: unspecified   
Target Milestone: 1.6 M4   
Hardware: All   
OS: Multiple   
Whiteboard: GUI design available
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Bug Depends on:    
Bug Blocks: 4716    
Attachments:
Description Flags
Directory structure information
none
Design 1.1 Image information
none
Design 1.1 Image information
none
Design 1.1 Image information none

Description Belen Barros Pena 2013-04-18 15:45:55 UTC
How the directory structure will be presented (a hierarchical tree, imitating a desktop file browser, is one possibility) is TBC. 

The presentation should include information about each directory / file (such as file size). The complete information set is TBC. 

For an idea of this feature, check:

http://www.yoctoproject.org/webhob/phase3_final_web_prototype/project-build-directorystructure.html
Comment 1 Belen Barros Pena 2013-06-14 11:03:05 UTC
Created attachment 1277 [details]
Directory structure information

A first version of the information required for the directory structure
Comment 2 Alexandru Damian 2013-09-20 12:11:21 UTC
All the needed info to reconstruct target image (the list of installed packets and the list of files per packet) are collected and available.

Moving the UI bug to David, post 1.5
Comment 3 Belen Barros Pena 2013-09-20 13:39:46 UTC
Created attachment 1528 [details]
Design 1.1 Image information
Comment 4 Belen Barros Pena 2013-11-21 12:01:12 UTC
Created attachment 1643 [details]
Design 1.1 Image information
Comment 5 Belen Barros Pena 2014-02-03 16:39:22 UTC
Created attachment 1753 [details]
Design 1.1 Image information

Add how to display packages renamed at packaging time (name != installed_name)
Comment 6 Belen Barros Pena 2014-03-19 16:01:56 UTC
*** Bug 5979 has been marked as a duplicate of this bug. ***
Comment 8 Yuan Sun 2014-04-04 09:49:02 UTC
In directory structure, a directory size doesn't include the size of all file under the directory. So now any directory size always be 4KB. I think that the direcory size should be sum of the size of all files under the directory.
What's your opinion?
Comment 9 Dave Lerner 2014-04-04 15:08:20 UTC

I think that the reported size of directories is correct.

On my ubuntu 12.04 host, note that the size is 4096 and accurately reflects the size required for the directory inode, not a total of the size of the sub-directory. That is the linux standard for ls which this view emulates.

Given that, then the size displayed for directories should
1) match the size shown in the database table
2) match the size shown for linux systems for directories using ls -l as shown below:
poky_16> ls -l .
total 19404
drwxr-xr-x 3 dlerner users     4096 Apr  2 17:34 apr_02_builds
-rw-r--r-- 1 dlerner users      168 Apr  3 10:54 s.sql
-rw-r--r-- 1 dlerner users 19856384 Apr  2 18:29 toaster.sqlite
Comment 10 Belen Barros Pena 2014-04-04 15:43:50 UTC
I think Dave is right. It also matches the information collected by other tools like build history, and it is important we keep consistency in the information collected across all tools.
Comment 11 Yuan Sun 2014-04-08 01:57:16 UTC
Got.Thanks. I understand.

Verified in 3e528d3e4bc542ca2f654c54363c56af0fb9f61b.