mirror of
https://github.com/privatevoid-net/nix-super.git
synced 2024-11-30 01:26:15 +02:00
Don't warn about maximum link count exceeded on 0-byte files
This commit is contained in:
parent
d025142f52
commit
325d1cfebf
1 changed files with 4 additions and 2 deletions
|
@ -156,6 +156,7 @@ void LocalStore::optimisePath_(OptimiseStats & stats, const Path & path)
|
|||
/* Too many links to the same file (>= 32000 on most
|
||||
file systems). This is likely to happen with empty
|
||||
files. Just shrug and ignore. */
|
||||
if (st.st_size)
|
||||
printMsg(lvlInfo, format("`%1%' has maximum number of links") % linkPath);
|
||||
return;
|
||||
}
|
||||
|
@ -172,6 +173,7 @@ void LocalStore::optimisePath_(OptimiseStats & stats, const Path & path)
|
|||
rename, rather than on the original link.
|
||||
(Probably it temporarily increases the st_nlink
|
||||
field before decreasing it again.) */
|
||||
if (st.st_size)
|
||||
printMsg(lvlInfo, format("`%1%' has maximum number of links") % linkPath);
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue