links: hard vs soft
V13
v13 at priest.com
Sat Jul 12 14:30:05 EEST 2003
On Friday 11 July 2003 07:29, Alexandros Papadopoulos wrote:
> To geniko 8ema einai to idio me ekeino to post (links), alla to eidiko
> 8ema einai teleiws diaforetiko.
>
> Tote milousame gia enan periorismo twn hard links oson afora
> directories, enw h twrinh aporia mou einai giati xrhsimopoiountai toso
> poly gia arxeia (/etc/rcX.d, /lib, /dev ktl), otan einai pio expensive
> (kai to file reference count den blepw ti sxesh exei me ta head seeks)
Gia polloys logoys...
a) An pareis backup kai to fereis piso eisai sigoyros oti tha exeis mia fora
mono to arxeio, eno me hard links mporeis na katalikseis me parapano apo ena
sto idio backup
b) Eisai sigoyros pos oti kai na ginei to link tha dixnei sto sosto arxeio...
P.x. fantasoy ti diafora toy na exeis ta:
/tmp/a
/tmp/b (hard link toy /tmp/a)
/tmp/c (soft link sto /tmp/a)
Exontas san original arxeio to /tmp/a (an kai den stekei kati tetoio stin
periptosi toy hard link) kai meta kaneis:
mv /tmp/a /tmp/a.bak1
mv /tmp/a.bak2 /tmp/a
... skepsoy mia antistixia aytoy me ta /etc/init.d/ scripts, ta opoia molis
eginan thalasa...
c) Me to soft link mporeis:
1) na ksereis poy dixnei
2) na sbiseis to arxeio poly eykola (eno me to hard link prepei na sbiseis
ola ta links toy)
d) Mporeis na pareis tar to /etc/init.d kai meta na to epanafereis xoris na
exeis xalasei ta /etc/rc*.d
klp klp
> -A
<<V13>>
More information about the Linux-greek-users
mailing list