The rename(2) system call usually only works within a single ?le system. However,the mv(1) command can be used to rename a ?le between two different ?le systems. How do you think the command knows that the source and destination aredifferent ?le systems? How do you think the mv command renames a ?le between two different ?le systems

What will be an ideal response?


he command could use stat(2) and comparethe st_dev entries to see if the source and destination ?le systems are on the same device. However, the command simply calls rename(2), and if it fails with errno set to EXDEV, then the command knows the two ?le systems aredifferent. In this case, the command simply copies the ?le from the source to the destination and then removes the source copy

Computer Science & Information Technology

You might also like to view...

Each dot in the grid of a bitmap graphic is referred to as a pixel.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A(n) ____________________ is a network of robot, or zombie, computers, which can harness their collective power to do considerable damage or send out huge amounts of junk e-mail.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

________ enables you to remove unwanted area of an image

A) Exclude B) Join C) Snip D) Crop

Computer Science & Information Technology

A single 4K block of information in Windows is called a(n) _______

Fill in the blank(s) with correct word

Computer Science & Information Technology