Bug 55069 - Error when filesystem contains '$' character
Summary: Error when filesystem contains '$' character
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: diskcheck
Version: 7.2
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Preston Brown
QA Contact:
URL:
Whiteboard:
: 55850 (view as bug list)
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-10-25 04:52 UTC by Chris Rode
Modified: 2008-05-01 15:38 UTC (History)
0 users

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2001-10-26 16:03:00 UTC
Embargoed:


Attachments (Terms of Use)
This patch fixes the problem for me. (444 bytes, patch)
2001-10-26 07:13 UTC, Alexandre Oliva
no flags Details | Diff


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2001:152 0 normal SHIPPED_LIVE New diskcheck program available 2001-11-07 05:00:00 UTC

Description Chris Rode 2001-10-25 04:52:40 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Win 9x 4.90)

Description of problem:
Diskcheck gives the following traceback when run while filesystems (SMB 
shares) containing a '$' character are mounted.  When these filesystems 
are not mounted, no error occurs.  I don't know python well enough to 
provide a patch, however.

Traceback (innermost last):
  File "/etc/cron.hourly/diskcheck", line 65, in ?
    (volume, total, used, avail, pct, mountpt) = string.split(line)
ValueError: unpack list of wrong size

Mounted filesystems:
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/md2                253743    165635     75008  69% /
/dev/md1               1031960    298804    680736  31% /home
/dev/md0               3579936   2929628    468452  87% /usr
/dev/md3              16460968   8709320   6915464  56% /var
none                     47024         0     47024   0% /dev/shm
//BURT/win2k_hotfix$   4731136   2025856   2705280  43% /mnt/win2k_hotfix
//BURT/br_reps_audit$ 
                      20972544  12068352   8904192  58% /mnt/br_reps_audit


Version-Release number of selected component (if applicable):


How reproducible:
Always

Steps to Reproduce:
1. Mount an SMB share with a '$' in the share name
2. Run diskcheck
3.
	

Actual Results:  Traceback (innermost last):
  File "/etc/cron.hourly/diskcheck", line 65, in ?
    (volume, total, used, avail, pct, mountpt) = string.split(line)
ValueError: unpack list of wrong size


Expected Results:  No traceback should have been produced.

Additional info:

Comment 1 Alexandre Oliva 2001-10-26 07:12:12 UTC
The problem is not the `$', but the fact that df breaks the output line if the
`Filesystem' field is too wide.  The solution is to use `df -P', so that it
doesn't do it.


Comment 2 Alexandre Oliva 2001-10-26 07:13:12 UTC
Created attachment 35163 [details]
This patch fixes the problem for me.

Comment 3 Chris Rode 2001-10-26 16:02:51 UTC
This patch fixes it here, too.  Thanks! :)


Comment 4 Preston Brown 2001-11-07 16:09:08 UTC
fixed in an upcoming errata.


Comment 5 Preston Brown 2001-11-08 14:25:29 UTC
*** Bug 55850 has been marked as a duplicate of this bug. ***


Note You need to log in before you can comment on or make changes to this bug.