1clri(1M) System Administration Commands clri(1M)
2
3
4
6 clri, dcopy - clear inode
7
9 clri [-F FSType] [-V] special i-number
10
11
12 dcopy [-F FSType] [-V] special i-number
13
14
16 clri writes zeros on the inodes with the decimal i-number on the file
17 system stored on special. After clri, any blocks in the affected file
18 show up as missing in an fsck(1M) of special.
19
20
21 Read and write permission is required on the specified file system
22 device. The inode becomes allocatable.
23
24
25 The primary purpose of this routine is to remove a file that for some
26 reason appears in no directory. If it is used to zap an inode that does
27 appear in a directory, care should be taken to track down the entry and
28 remove it. Otherwise, when the inode is reallocated to some new file,
29 the old entry will still point to that file. At that point, removing
30 the old entry will destroy the new file. The new entry will again point
31 to an unallocated inode, so the whole cycle is likely to be repeated
32 again and again.
33
34
35 dcopy is a symbolic link to clri.
36
38 -F FSType Specify the FSType on which to operate. The FSType
39 should either be specified here or be determinable from
40 /etc/vfstab by matching special with an entry in the ta‐
41 ble, or by consulting /etc/default/fs.
42
43
44 -V Echo the complete command line, but do not execute the
45 command. The command line is generated by using the
46 options and arguments provided by the user and adding to
47 them information derived from /etc/vfstab. This option
48 should be used to verify and validate the command line.
49
50
52 See largefile(5) for the description of the behavior of clri and dcopy
53 when encountering files greater than or equal to 2 Gbyte ( 2^31 bytes).
54
56 /etc/default/fs Default local file system type
57
58
59 /etc/vfstab List of default parameters for each file system
60
61
63 See attributes(5) for descriptions of the following attributes:
64
65
66
67
68 ┌─────────────────────────────┬─────────────────────────────┐
69 │ ATTRIBUTE TYPE │ ATTRIBUTE VALUE │
70 ├─────────────────────────────┼─────────────────────────────┤
71 │Availability │SUNWcsu │
72 └─────────────────────────────┴─────────────────────────────┘
73
75 fsck(1M), vfstab(4), attributes(5), largefile(5)
76
78 This command might not be supported for all FSTypes.
79
80
81
82SunOS 5.11 16 Sep 1996 clri(1M)