Commit Graph

10 Commits

Author SHA1 Message Date
Lukas Czerner
f85b4526f6 tune2fs: implement support for set/get label iocts
Implement support for FS_IOC_SETFSLABEL and FS_IOC_GETFSLABEL ioctls.
Try to use the ioctls if possible even before we open the file system
since we don't need it. Only fall back to the old method in the case the
file system is not mounted, is mounted read only in the set label case,
or the ioctls are not suppported by the kernel.

The new ioctls can also be supported by file system drivers other than
ext4. As a result tune2fs and e2label will work for those file systems
as well as long as the file system is mounted. Note that we still truncate
the label exceeds the supported lenghth on extN file system family, while
we keep the label intact for others.

Update tune2fs and e2label as well.

Signed-off-by: Lukas Czerner <lczerner@redhat.com>
Reviewed-by: Andreas Dilger <adilger@dilger.ca>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2021-12-31 00:34:29 -05:00
Theodore Ts'o
e87bb84b4f Change "filesystem" to "file system" in the man pages
To improve consistency, use "file system" in all of the man pages in
preference over "filesystem".

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2021-08-15 19:36:06 -04:00
Theodore Ts'o
d04ad325f0 Remove spaces at the end of man pages
Addresses-Debian-Bug: #865584

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-08-04 01:51:50 -04:00
Theodore Ts'o
394606651d e2label.8, tune2fs.8: use volume label terminology consistently
Addresses-Debian-Bug: #852726

Signed-off-by: Theodore Ts'o <tytso@mit.edu>
2017-01-31 17:58:07 -05:00
Theodore Ts'o
4f858546e1 Update man pages to include ext4 in the synposis, instead of just "ext2/ext3"
The e2fsprogs programs have historically just said that they operate
on ext2 and ext3 file system in their man pages.  Update them to say
that they also operate on ext4 file systems.

Addresses-Launchpad-bug: #381854

Signed-off-by: "Theodore Ts'o" <tytso@mit.edu>
2009-05-30 12:34:28 -04:00
Theodore Ts'o
a7ac1df34f Adjust description line so that apropos "ext2" or "ext3" will
find all of the e2fsprogs man pages.  (Addresses Debian Bug #206845)
2003-08-24 17:56:41 -04:00
Theodore Ts'o
12da49c947 Many files:
badblocks.8.in, dumpe2fs.8.in, e2label.8.in, mke2fs.8.in,
  	mklost+found.8.in, tune2fs.8.in: Fix typo; removed excess "anonymous"
  	in the AVAILABILITY section.
2001-05-12 15:49:17 +00:00
Theodore Ts'o
348e43dccb ChangeLog, dumpe2fs.8.in, dumpe2fs.c:
dumpe2fs.c (main): Add new flag, -i, which will allow dumpe2fs to dump
  	out the filesystem statistics from an ext2 image file.
Many files:
  e2image.8.in: New manual page
  badblocks.8.in, e2label.8.in, mke2fs.8.in mklost+found.8.in,
  	tune2fs.8.in: Update location of e2fsprogs to be
  	http://e2fsprogs.sourceforge.net.
2001-05-03 14:43:43 +00:00
Theodore Ts'o
caf8ce4cc4 Many files:
badblocks.8.in, chattr.1.in, dumpe2fs.8.in, e2label.8.in,
  fsck.8.in, lsattr.1.in, mke2fs.8.in, mklost+found.8.in,
  tune2fs.8.in, uuidgen.1.in: Update man page to use a more standard
  	format (bold option flags and italicized variables), as suggested by
  	Andreas Dilger (adilger@enel.ucalgary.ca)
ChangeLog, e2fsck.8.in:
  e2fsck.8.in: Update man page to use a more standard format (bold
  	option flags and italicized variables), as suggested by Andreas Dilger
  	(adilger@enel.ucalgary.ca)
ChangeLog, uuid_generate.3.in:
  uuid_generate.8.in: Update man page to use a more standard format
  	(bold option flags and italicized variables), as suggested by Andreas
  	Dilger (adilger@enel.ucalgary.ca)
1999-10-21 19:56:34 +00:00
Theodore Ts'o
a789d84060 Many files:
e2label.c: Fix -Wall warning by making functions static.
  chattr.1.in: Document that the append-only attribute may only be set
  	or cleared by the superuser.
  Update all manual pages to that the availability section is
  	up-to-date.
  e2label.8.in, tune2fs.8.in: Update manual page to state that labels
  	must be no longer than 16 characters, or they will be truncated.
  e2label.c (change_label), tune2fs.c (main): If the label is longer
  	than 16 characters, print a warning message stating that the label
  	will be truncated.
  mke2fs.c (PRS): If the user specifies a filesystem size, and it's
  	larger than the apparent size of the device, print a warning message
  	and ask if the user wants to proceed.
1998-03-30 01:20:55 +00:00