Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 65491 - Portage rsync tries to rmdir distfiles
Summary: Portage rsync tries to rmdir distfiles
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 65519 65606 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-09-26 20:50 UTC by Pieter De Wit
Modified: 2004-10-22 08:48 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Pieter De Wit 2004-09-26 20:50:18 UTC
On an emerge sync when portage is cleaning up, it deletes the packages directory. This causes emerge sync to fail if the packages directory is mounted to another volume.

Reproducible: Always
Steps to Reproduce:
1. Mount /usr/portage/packages to some volume
2. emerge sync
3. Error "delete_one: rmdir "/usr/portage/packages" failed: Device or resource busy"
Actual Results:  
emerge sync fails

Expected Results:  
emerge should have completed

This is quite a problem since I have 4 machines making packages, everytime I
need to update them it is quite a mission.

Thanks Guys !!!
Comment 1 Nicholas Jones (RETIRED) gentoo-dev 2004-09-27 07:06:55 UTC
It doesn't actually delete anything.
_rc7/final will have this fixed.
Comment 2 Pieter De Wit 2004-09-27 07:12:21 UTC
uhm, mine deletes the directory if unmounted.

builder ~ # mount
ip:/builds/p4 on /usr/portage/packages type nfs (rw,soft,addr=ip)

Number of files: 98693
Number of files transferred: 258
Total file size: 76361535 bytes
Total transferred file size: 575687 bytes
Literal data: 575687 bytes
Matched data: 0 bytes
File list size: 2178949
Total bytes written: 5344
Total bytes read: 2420163

wrote 5344 bytes  read 2420163 bytes  124384.97 bytes/sec
total size is 76361535  speedup is 31.48
rsync error: some files could not be transferred (code 23) at main.c(1064)

Errors

delete_one: rmdir "/usr/portage/packages" failed: Device or resource busy

And so on till number three...

rc6 is running atm on my machines...
Comment 3 SpanKY gentoo-dev 2004-09-27 20:37:32 UTC
*** Bug 65606 has been marked as a duplicate of this bug. ***
Comment 4 SpanKY gentoo-dev 2004-09-27 20:37:51 UTC
*** Bug 65519 has been marked as a duplicate of this bug. ***
Comment 5 Nicholas Jones (RETIRED) gentoo-dev 2004-10-22 08:48:01 UTC
Bug has been fixed and released in stable portages on or before 2.0.51-r2