]> code.ossystems Code Review - openembedded-core.git/commit
sanity.bbclass: check that TMPDIR is not located on nfs
authorRobert Yang <liezhi.yang@windriver.com>
Wed, 22 Jan 2014 10:50:20 +0000 (18:50 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 2 Feb 2014 11:21:56 +0000 (11:21 +0000)
commitee4061b43522c4893b41c3be63d06be1ee7e3c70
treea3a18491c75135828add3b3a61f743a47dfc12f8
parent4ea9ca2bbacb20c3ed454b80e2c020c1073f3299
sanity.bbclass: check that TMPDIR is not located on nfs

There would be some unexpected errors when the whole TMPDIR is located
on nfs, so add a test for it in sanity.bbclass.

Note:
The better way to get the filesystem id should be get f_fsid from struct
statvfs, but there is no f_fsid in os.stat() or os.statvfs(), so we use
'stat -f -c "%t"' here.

BTW., s/tmpdir/TMPDIR/ in the previous comment message to make them have
a uniform.

[YOCTO #5442]

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/sanity.bbclass