Bug 27378 - mount cant use a 16 character LABEL= field in /etc/fstab
Summary: mount cant use a 16 character LABEL= field in /etc/fstab
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: mount   
(Show other bugs)
Version: 7.0
Hardware: i386 Linux
Target Milestone: ---
Assignee: Bernhard Rosenkraenzer
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2001-02-13 12:46 UTC by Nick Craig-Wood
Modified: 2007-04-18 16:31 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-02-13 14:50:39 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Nick Craig-Wood 2001-02-13 12:46:42 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.75 [en] (X11; U; Linux 2.2.18-ncw2 i686; Nav)

I made a seperate partition for /var/spool/squid in the installer.  e2label
set the label correctly (it is 16 characters long and therefore ok
according to man e2label).  However with LABEL=/var/spool/squid in
/etc/fstab mount -a refuses to mount the
disk.  Shortening the label to < 16 chars fixes the problem.

This is probably an unterminated buffer problem (strncpy is my guess ;-)

Reproducible: Always
Steps to Reproduce:
1. umount /partiton
2. e2label /dev/hdX abcdef0123456789
3. vi /etc/fstab set LABEL=abcdef0123456789 for /partition instead of
4. mount /partition

Actual Results:  Step 4 gives the error
mount: special device LABEL=abcdef0123456789 does not exist

Expected Results:  It should have mounted the partition

Shortening the LABEL name to 15 characters fixes the problem

Comment 1 Bernhard Rosenkraenzer 2001-02-13 14:50:36 UTC
This is fixed in the current version.

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