[Box Backup] Question about mount-point parsing

Joe Krahn boxbackup at fluffy.co.uk
Mon Dec 13 21:04:48 GMT 2004


Ben Summers wrote:
> 
> On 13 Dec 2004, at 17:18, Joe Krahn wrote:
> 
>> Is the mount-point lookup in BackupDaemon.cpp related to avoiding 'one 
>> filesystem' problems?
> 
> 
> No.
> 
>>
>> The comment says:
>> // Linux can't tell you where a directory is mounted. So we have to
>> // read the mount entries from /etc/mtab! Bizarre that the OS itself
>> // can't tell you, but there you go.
>>
>> This is sort of what the stat.st_dev field is for, but not exactly. 
>> Depends what you're trying to do.
> 
> 
> For this purpose, the integer device ID isn't good enough and the actual 
> name is required.
> 
> Ben
OK, but what is the purpose of determining the mount point?

Joe



More information about the Boxbackup mailing list