1LOCKDEV(8) LOCKDEV(8)
2
3
4
6 lockdev demonstrates functionality of liblockdev library.
7
8
10 /usr/sbin/lockdev [<operation>] <device>
11
12
14 The lockdev command can perform one of the following operations:
15
16 -l - lock device with dev_lock() function
17
18 -u - unlock device with dev_unlock() function
19
20 no operation - test lock with dev_testlock() function
21
22
24 Value dev_lock dev_unlock dev_testlock
25 0 OK OK not locked
26 1 locked other locked other locked
27 2 EACCES
28 3 EROFS
29 4 EFAULT
30 5 EINVAL
31 6 ENAMETOOLONG
32 7 ENOENT
33 8 ENOTDIR
34 9 ENOMEM
35 10 ELOOP
36 11 EIO
37 255 error error error
38
39
41 lockdev(3).
42
43
44
45 SEPTEMBER 2009 LOCKDEV(8)