Bug 27378 - mount cant use a 16 character LABEL= field in /etc/fstab
mount cant use a 16 character LABEL= field in /etc/fstab
Status: CLOSED RAWHIDE
Product: Red Hat Linux
Classification: Retired
Component: mount (Show other bugs)
7.0
i386 Linux
medium Severity low
: ---
: ---
Assigned To: Bernhard Rosenkraenzer
David Lawrence
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2001-02-13 07:46 EST by Nick Craig-Wood
Modified: 2007-04-18 12:31 EDT (History)
0 users

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


Attachments (Terms of Use)

  None (edit)
Description Nick Craig-Wood 2001-02-13 07:46:42 EST
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
/dev/hdX
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 09:50:36 EST
This is fixed in the current version.

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