Вы находитесь на странице: 1из 20

( 2)

UNIX.
UNIX
, .

(regular file)
(directory)
(special device file)
(FIFO)
(link)
(socket)

UNIX

BIN

ETC

LIB

TMP

INCLUDE

SYS

MNT

BIN

DEV

USR

USER

System V


,
.

,
.
,
, .



N
0
0


OK


:
512b; 4b

1
10

10 11 12 13

128

128

128
128

128
128

128

128



root

text

prog.c

usr

peter

unix

bin

bin

lib

dev

17

21

1 .

17 .

1 ..

1 ..

21 text

25 peter

17 usr

19 bin

3 unix

34 lib

76 bin

21 prog.c

14 dev


dir 1

dir 1

name 1

name 2

name 3

17577

17755
/dir/name 1


System V



System V

FFS BSD



FFS

FFS BSD


( )

()

1
t


petya.txt
.

5120

00

08

vasya.txt

16

4608

04

12

18

,
0

00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23

petya.txt
.

5632

00

08

vasya.txt
.

20

4608

04

12

18

,
0

00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23

FFS




( 255 )

Name1
Name2
Name3
Name4

Size(Name1)

RM Name2

Name1

Size
(Name1)

Name3

Size
(Name3)

RM Name4

Name5

Name5

NAME \0
4


.
fcntl ()
(exclusive lock)
(
).
.
(shared lock)

).

Оценить