Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 9682] New: Cleanse could clean up /usr/src if TMPFS is on

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 9682] New: Cleanse could clean up /usr/src if TMPFS is on
  • Date: Tue, 30 Aug 2005 08:00:18 -0700 (PDT)

http://bugs.sourcemage.org/show_bug.cgi?id=9682

Summary: Cleanse could clean up /usr/src if TMPFS is on
Product: Sorcery
Version: Untargetted future release
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: P5
Component: Cleanse
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: sergey AT sourcemage.org


When TMPFS is on, there might be a lot of sources in /usr/src that didn't
build
for whatever reason. If the sorcery is not configured to delete them right
away,
maybe cleanse could do that. The script that I use follows. I think
maintainers
will appreciate this feature-let, I know I would.

#!/bin/sh
DIRECTORIES=$(
mount \
| grep
'^[[:alnum:]]\+[[:space:]]on[[:space:]]/usr/src/[^/[:space:]]\+[[:space:]]type[[:space:]]tmpfs'
\
| cut -d ' ' -f 3
)
[[ -z "$DIRECTORIES" ]] && exit

umount -v $DIRECTORIES &&
rmdir -v $DIRECTORIES

--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



  • [SM-Sorcery-Bugs] [Bug 9682] New: Cleanse could clean up /usr/src if TMPFS is on, bugzilla-daemon, 08/30/2005

Archive powered by MHonArc 2.6.24.

Top of Page