Opened 15 years ago
Closed 15 years ago
#375 closed defect (fixed)
mondoarchive / mondorestore will segfault if the partition decidied by sensibly_set_tmpdir_and_scratchdir() is read-only
Reported by: | cylau | Owned by: | Bruno Cornec |
---|---|---|---|
Priority: | highest | Milestone: | 2.2.9.2 |
Component: | mondo | Version: | 2.2.9.1 |
Severity: | blocker | Keywords: | |
Cc: |
Description
mondo version = mondo-2.2.9.1 In src/common/libmondo-devices.c (Line 2772) In void sensibly_set_tmpdir_and_scratchdir() :
The output of call_program_and_get_last_line_of_output
LANGUAGE=C df -m -P -x nfs -x nfs4 -x fuse.sshfs -x fuse -x vfat -x ntfs -x ntfs-3g -x smbfs -x smb -x cifs -x afs -x gfs -x ocfs -x ocfs2 -x mvfs -x nsspool -x nssvol -x iso9660 | grep -vE "none|Filesystem|/dev/shm" | awk '{printf "%s %s\n", $4, $6;}' | sort -nr | awk '{print $NF;}'
This command line does not avoid the partition which is mounted as read only, and it will make segfault in later lines.
For example, If /local is the largest partition with most available spaces, but it is mounted as read only, it cannot create the scratch.
Attached the proposed patch file and spec file for RHEL5:
Attachments (2)
Change History (4)
by , 15 years ago
Attachment: | mondo-skip-ro-filesystem.patch added |
---|
by , 15 years ago
Attachment: | mondo-patched.spec added |
---|
comment:1 by , 15 years ago
Severity: | critical → blocker |
---|
comment:2 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Thanks for your patch. Applied for 2.2.9.2 in rev [2501]
rpm spec file for RHEL5