* duplicate files in tmp
@ 2020-03-31 1:40 nus1998
2020-03-31 8:58 ` [yocto] " Ross Burton
0 siblings, 1 reply; 4+ messages in thread
From: nus1998 @ 2020-03-31 1:40 UTC (permalink / raw)
To: yocto
[-- Attachment #1: Type: text/plain, Size: 540 bytes --]
Hi All,
I'm newbie to yocto, currently I use imx-linux-zeus as the develop environment.
When I bitbaked the system, I found there are a lot of duplicate files in <build>/tmp, for example, there is a directory named "recipe-sysroot-native" in every package, which directory is serveral hundreds of MB in size. I'm confused that why don't use link file type to instead of duplicate copies, which can save tens of GB size. I know that disk capacity should not be a concern but it's always welcome to have a small size project.
B.R.
Nus
[-- Attachment #2: Type: text/html, Size: 961 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [yocto] duplicate files in tmp
2020-03-31 1:40 duplicate files in tmp nus1998
@ 2020-03-31 8:58 ` Ross Burton
2020-03-31 9:14 ` nus1998
0 siblings, 1 reply; 4+ messages in thread
From: Ross Burton @ 2020-03-31 8:58 UTC (permalink / raw)
To: nus1998; +Cc: yocto
On Tue, 31 Mar 2020 at 09:57, nus1998 <nus1998@yeah.net> wrote:
> When I bitbaked the system, I found there are a lot of duplicate files in <build>/tmp, for example, there is a directory named "recipe-sysroot-native" in every package, which directory is serveral hundreds of MB in size. I'm confused that why don't use link file type to instead of duplicate copies, which can save tens of GB size. I know that disk capacity should not be a concern but it's always welcome to have a small size project.
They are links, but hardlinks not softlinks for efficiency and even
less disk usage.
Ross
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [yocto] duplicate files in tmp
2020-03-31 8:58 ` [yocto] " Ross Burton
@ 2020-03-31 9:14 ` nus1998
2020-03-31 10:47 ` Ross Burton
0 siblings, 1 reply; 4+ messages in thread
From: nus1998 @ 2020-03-31 9:14 UTC (permalink / raw)
To: Ross Burton; +Cc: yocto
[-- Attachment #1: Type: text/plain, Size: 829 bytes --]
Well, Ubuntu doesn't tell any difference between a normal file and a hard link file on gui file explore, verified by "ls -i". thanks<br/><br/>B.R.<br/>Nus
At 2020-03-31 16:58:26, "Ross Burton" <ross@burtonini.com> wrote:
>On Tue, 31 Mar 2020 at 09:57, nus1998 <nus1998@yeah.net> wrote:
>> When I bitbaked the system, I found there are a lot of duplicate files in <build>/tmp, for example, there is a directory named "recipe-sysroot-native" in every package, which directory is serveral hundreds of MB in size. I'm confused that why don't use link file type to instead of duplicate copies, which can save tens of GB size. I know that disk capacity should not be a concern but it's always welcome to have a small size project.
>
>They are links, but hardlinks not softlinks for efficiency and even
>less disk usage.
>
>Ross
[-- Attachment #2: Type: text/html, Size: 909 bytes --]
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [yocto] duplicate files in tmp
2020-03-31 9:14 ` nus1998
@ 2020-03-31 10:47 ` Ross Burton
0 siblings, 0 replies; 4+ messages in thread
From: Ross Burton @ 2020-03-31 10:47 UTC (permalink / raw)
To: nus1998; +Cc: yocto
On Tue, 31 Mar 2020 at 10:14, nus1998 <nus1998@yeah.net> wrote:
> Well, Ubuntu doesn't tell any difference between a normal file and a hard link file on gui file explore, verified by "ls -i". thanks<br/><br/>B.R.<br/>Nus
Right. You'll need to use 'ls -l':
$ touch foo
$ ls -l foo
-rw-r--r-- 1 ross staff 0 Mar 31 11:46 foo
$ ln foo bar
$ ls -l foo bar
-rw-r--r-- 2 ross staff 0 Mar 31 11:46 bar
-rw-r--r-- 2 ross staff 0 Mar 31 11:46 foo
The second column is 'link count'. If you've never encountered hard
links before, look them up.
Ross
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-03-31 10:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-31 1:40 duplicate files in tmp nus1998
2020-03-31 8:58 ` [yocto] " Ross Burton
2020-03-31 9:14 ` nus1998
2020-03-31 10:47 ` Ross Burton
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.