Linux / Fs
Duplication

Places in code with 6 or more lines that are exactly the same.

Intro
  • For duplication, we look at places in code where there are 6 or more lines of code that are exactly the same.
  • Before duplication is calculated, the code is cleaned to remove empty lines, comments, and frequently duplicated constructs such as imports.
  • You should aim at having as little as possible (<5%) of duplicated code as high-level of duplication can lead to maintenance difficulties, poor factoring, and logical contradictions.
Learn more...
Duplication Overall
  • 8% duplication:
    • 883,897 cleaned lines of cleaned code (without empty lines, comments, and frequently duplicated constructs such as imports)
    • 71,978 duplicated lines
  • 397,390 duplicates
system8% (71,978 lines)
Duplication per Extension
c8% (65,990 lines)
h7% (5,976 lines)
asn115% (12 lines)
Duplication per Component (primary)
nls32% (17,990 lines)
cifs12% (5,928 lines)
xfs6% (5,694 lines)
nfs9% (4,694 lines)
btrfs4% (4,198 lines)
ocfs25% (2,869 lines)
ROOT5% (2,550 lines)
ntfs12% (1,914 lines)
ext45% (1,902 lines)
afs11% (1,748 lines)
ksmbd8% (1,604 lines)
ubifs7% (1,483 lines)
hfsplus17% (1,412 lines)
jfs9% (1,344 lines)
nfsd4% (1,342 lines)
hfs32% (1,272 lines)
lockd24% (1,193 lines)
f2fs3% (1,026 lines)
ntfs34% (788 lines)
reiserfs4% (727 lines)
unicode24% (689 lines)
jffs25% (649 lines)
dlm5% (636 lines)
proc6% (610 lines)
nilfs24% (574 lines)
ufs11% (535 lines)
gfs22% (521 lines)
ceph2% (517 lines)
ext28% (462 lines)
fat7% (426 lines)
udf5% (382 lines)
exfat6% (310 lines)
hpfs6% (297 lines)
fuse2% (274 lines)
squashfs8% (272 lines)
ecryptfs4% (260 lines)
9p6% (240 lines)
minix14% (240 lines)
orangefs3% (237 lines)
sysv11% (221 lines)
quota4% (172 lines)
isofs5% (146 lines)
debugfs12% (132 lines)
affs4% (123 lines)
cachefiles4% (106 lines)
tracefs29% (102 lines)
overlayfs1% (96 lines)
crypto3% (94 lines)
erofs1% (94 lines)
notify2% (86 lines)
autofs4% (86 lines)
vboxsf3% (64 lines)
freevxfs4% (56 lines)
fscache3% (50 lines)
adfs3% (47 lines)
kernfs2% (42 lines)
nfs_common10% (36 lines)
jbd2<1% (36 lines)
omfs2% (35 lines)
iomap2% (35 lines)
befs1% (31 lines)
devpts8% (31 lines)
coda1% (30 lines)
smbfs_common4% (25 lines)
verity2% (24 lines)
configfs1% (23 lines)
pstore<1% (22 lines)
efs2% (19 lines)
zonefs1% (15 lines)
hugetlbfs1% (13 lines)
ramfs3% (13 lines)
romfs2% (12 lines)
cramfs1% (12 lines)
sysfs1% (12 lines)
qnx61% (9 lines)
bfs<1% (7 lines)
netfs<1% (6 lines)
qnx41% (6 lines)
openpromfs0% (0 lines)
efivarfs0% (0 lines)
exportfs0% (0 lines)
hostfs0% (0 lines)

Duplication Between Components (50+ lines)

G hfs hfs hfsplus hfsplus hfs--hfsplus 2354 cifs cifs cifs--hfsplus 246 ksmbd ksmbd cifs--ksmbd 1731 nls nls cifs--nls 384 jfs jfs cifs--jfs 189 nfs nfs cifs--nfs 51 nfsd nfsd ksmbd--nfsd 64 ext2 ext2 ext4 ext4 ext2--ext4 398 minix minix ext2--minix 50 sysv sysv ext2--sysv 50 ext2--jfs 174 reiserfs reiserfs ext2--reiserfs 136 ufs ufs ext2--ufs 124 nilfs2 nilfs2 ext2--nilfs2 102 f2fs f2fs ext4--f2fs 338 ext4--jfs 72 ocfs2 ocfs2 ext4--ocfs2 182 ext4--reiserfs 114 f2fs--ocfs2 72 ROOT ROOT f2fs--ROOT 152 minix--sysv 314 minix--ufs 54 omfs omfs minix--omfs 50 sysv--ufs 64 jfs--ksmbd 177 jfs--reiserfs 86 ROOT--ext4 110 tracefs tracefs ROOT--tracefs 58 debugfs debugfs debugfs--tracefs 122 devpts devpts debugfs--devpts 62 nfs--nfsd 112 nilfs2--ufs 64 cachefiles cachefiles fscache fscache cachefiles--fscache 64 devpts--tracefs 62 btrfs btrfs btrfs--ROOT 50

Download: SVG DOT (open online Graphviz editor)

Open 3D force graph...

Show more details on duplication between components...
Longest Duplicates
The list of 50 longest duplicates.
See data for all 397,390 duplicates...
Size#FoldersFilesLinesCode
124 x 2 hfs
hfsplus
211:369 (32%)
215:373 (31%)
view
114 x 2 nls
nls
13789:13923 (<1%)
9325:9459 (1%)
view
101 x 2 nls
nls
302:421 (24%)
16:135 (50%)
view
87 x 2 nls
nls
165:264 (37%)
188:287 (34%)
view
84 x 2 nls
nls
198:289 (26%)
198:289 (26%)
view
83 x 2 nls
nls
10917:11005 (<1%)
9314:9402 (<1%)
view
82 x 2 nls
nls
198:287 (25%)
198:287 (25%)
view
82 x 2 nls
nls
198:287 (25%)
198:287 (25%)
view
78 x 2 nls
nls
7759:7842 (1%)
13783:13866 (<1%)
view
75 x 2 afs
afs
1318:1415 (5%)
1232:1329 (5%)
view
73 x 2 nls
nls
10928:11005 (<1%)
13789:13866 (<1%)
view
73 x 2 nls
nls
7765:7842 (<1%)
9325:9402 (<1%)
view
73 x 2 nls
nls
7765:7842 (<1%)
10928:11005 (<1%)
view
72 x 2 ntfs
ntfs
293:395 (8%)
771:873 (8%)
view
70 x 2 nls
nls
210:285 (21%)
204:279 (22%)
view
70 x 2 nls
nls
204:279 (22%)
210:285 (21%)
view
70 x 2 ntfs3
ntfs3
953:1056 (5%)
1553:1656 (5%)
view
70 x 2 nls
nls
210:285 (21%)
204:279 (22%)
view
68 x 2 nls
nls
425:495 (16%)
13789:13859 (<1%)
view
68 x 2 nls
nls
425:495 (16%)
9325:9395 (<1%)
view
68 x 2 nls
nls
425:495 (16%)
10928:10998 (<1%)
view
68 x 2 nls
nls
425:495 (16%)
7765:7835 (<1%)
view
66 x 2 ufs
ufs
346:427 (11%)
807:872 (11%)
view
64 x 2 cifs
cifs
5383:5446 (1%)
5483:5546 (1%)
view
58 x 2 nls
nls
198:261 (18%)
232:295 (16%)
view
58 x 2 nls
nls
198:261 (18%)
232:295 (16%)
view
58 x 2 nls
nls
232:295 (16%)
198:261 (18%)
view
57 x 2 hfs
hfsplus
166:236 (32%)
223:293 (26%)
view
56 x 2 nfs
nfs
1474:1534 (2%)
1548:1608 (2%)
view
56 x 2 nls
nls
52:121 (11%)
52:121 (10%)
view
55 x 2 nls
nls
52:120 (10%)
52:120 (10%)
view
55 x 2 nls
nls
52:120 (10%)
52:120 (10%)
view
53 x 2 lockd
lockd
89:174 (19%)
86:171 (18%)
view
53 x 2 nls
nls
16:81 (26%)
16:81 (24%)
view
53 x 2 nls
nls
302:367 (13%)
16:81 (24%)
view
51 x 2 nls
nls
66:124 (15%)
66:124 (14%)
view
51 x 2 hfs
hfsplus
438:505 (13%)
442:509 (13%)
view
49 x 2 cifs
cifs
1089:1152 (6%)
5300:5369 (1%)
view
47 x 2 nls
nls
244:295 (13%)
204:255 (14%)
view
47 x 2 nls
nls
78:129 (17%)
76:127 (17%)
view
46 x 2 cifs
cifs
5575:5621 (1%)
5689:5734 (1%)
view
45 x 2 nls
nls
52:107 (8%)
52:107 (9%)
view
45 x 2 nls
nls
52:107 (9%)
52:107 (8%)
view
45 x 2 nls
nls
52:107 (9%)
52:107 (8%)
view
44 x 2 nls
nls
52:106 (9%)
52:106 (8%)
view
44 x 2 nls
nls
52:106 (8%)
52:106 (8%)
view
44 x 2 nls
nls
70:120 (13%)
70:120 (13%)
view
44 x 2 nls
nls
70:120 (13%)
70:120 (12%)
view
44 x 2 nls
nls
52:106 (8%)
52:106 (8%)
view
44 x 2 nls
nls
52:106 (8%)
52:106 (8%)
view
Duplicated Units
The list of top 47 duplicated units.
See data for all 47 unit duplicates...
Size#FoldersFilesLinesCode
60 x 2 hfs
hfsplus
174:237 
231:294 
view
28 x 2 lockd
lockd
139:169 
136:166 
view
25 x 2 nls
nls
9397:9426 
13861:13890 
view
25 x 2 nls
nls
9428:9457 
13892:13921 
view
25 x 2 ROOT
ROOT
1289:1320 
1514:1546 
view
20 x 2 nfs
nfs
393:414 
193:215 
view
17 x 2 btrfs
btrfs
76:96 
617:637 
view
17 x 2 f2fs
ext4
3977:3995 
415:433 
view
15 x 2 sysv
minix
37:53 
49:65 
view
13 x 2 btrfs
btrfs
2375:2388 
2390:2403 
view
13 x 45 nls
nls
nls
nls
nls
nls
nls
nls
nls
nls
...
269:284 
450:465 
295:310 
120:135 
277:292 
262:277 
341:356 
226:241 
555:570 
341:356 
...
view
13 x 2 gfs2
gfs2
845:861 
1065:1082 
view
13 x 2 ext4
ocfs2
16:31 
207:222 
view
12 x 2 ROOT
ROOT
1424:1438 
2146:2160 
view
11 x 2 hfs
hfsplus
312:324 
463:475 
view
11 x 2 ksmbd
ksmbd
315:328 
330:343 
view
11 x 2 afs
afs
442:456 
580:594 
view
11 x 2 afs
afs
1517:1529 
167:179 
view
10 x 2 notify/inotify
notify/fanotify
117:129 
725:737 
view
10 x 2 erofs
udf
23:36 
2318:2332 
view
10 x 2 lockd
lockd
117:128 
114:125 
view
9 x 2 nfs
nfs
1110:1120 
2503:2513 
view
9 x 2 nfs/filelayout
nfs/filelayout
292:304 
388:400 
view
9 x 2 nfs/flexfilelayout
nfs/flexfilelayout
1413:1425 
1588:1600 
view
9 x 2 nls
nls
60:71 
558:569 
view
9 x 2 ROOT
ROOT
1225:1235 
1456:1466 
view
9 x 2 exfat
fat
53:64 
48:58 
view
9 x 2 cifs
ksmbd
4406:4418 
970:980 
view
8 x 2 jfs
hfsplus
84:93 
42:51 
view
8 x 2 ntfs3
ntfs3
167:179 
213:225 
view
8 x 2 hfs
hfsplus
458:466 
611:619 
view
8 x 2 hfs
hfsplus
44:52 
44:52 
view
8 x 2 hfs
hfsplus
19:28 
20:29 
view
8 x 2 ocfs2/dlmfs
ocfs2
100:109 
877:886 
view
7 x 2 proc
proc
280:289 
218:227 
view
7 x 2 nfs
ext4
373:380 
315:322 
view
7 x 2 ROOT
ROOT
1212:1221 
1445:1454 
view
7 x 2 cifs
ksmbd
619:626 
1911:1918 
view
7 x 2 hfs
hfsplus
410:418 
563:571 
view
6 x 2 proc
proc
1693:1700 
921:927 
view
6 x 2 nfsd
nfsd
233:240 
305:312 
view
6 x 45 nls
nls
nls
nls
nls
nls
nls
nls
nls
nls
...
286:292 
467:473 
312:318 
137:143 
294:300 
279:285 
358:364 
243:249 
572:578 
358:364 
...
view
6 x 2 sysv
minix
111:117 
135:141 
view
6 x 4 sysv
ext2
ext4
minix
269:275 
1010:1016 
746:752 
215:221 
view
6 x 2 lockd
lockd
108:115 
105:112 
view
6 x 2 lockd
lockd
305:313 
299:307 
view
6 x 2 hfs
hfsplus
209:215 
64:70 
view