All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] officially drop Linux < 2.6
@ 2017-06-29  2:09 Ruediger Meier
  2017-06-29  2:09 ` [PATCH 1/3] docs: remove some old history from manpages Ruediger Meier
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Ruediger Meier @ 2017-06-29  2:09 UTC (permalink / raw)
  To: util-linux

From: Ruediger Meier <ruediger.meier@ga-group.nl>

A few weeks ago I'd tried to make things incompatible
to justify ul version 3.0 ... not soo successful but
maybe these patches are useful anyways.

There are still some reference to older Kernels left
but I was too bored to find better words for these
cases.

Ruediger Meier (3):
  docs: remove some old history from manpages
  lib/blkdev: remove support for Linux < 2.6
  docs: correct line(1) deprecation comment

 Documentation/deprecated.txt |  2 +-
 disk-utils/mkfs.cramfs.8     |  2 +-
 disk-utils/mkfs.cramfs.c     |  5 +--
 include/pt-mbr-partnames.h   |  2 +-
 include/pt-mbr.h             |  2 +-
 lib/blkdev.c                 | 13 +------
 sys-utils/eject.1            |  6 +--
 sys-utils/mount.8            | 88 ++++++++------------------------------------
 sys-utils/readprofile.8      |  6 +--
 sys-utils/swapon.8           |  2 +-
 sys-utils/umount.8           |  5 +--
 11 files changed, 33 insertions(+), 100 deletions(-)

-- 
1.8.5.6


^ permalink raw reply	[flat|nested] 5+ messages in thread

* [PATCH 1/3] docs: remove some old history from manpages
  2017-06-29  2:09 [PATCH 0/3] officially drop Linux < 2.6 Ruediger Meier
@ 2017-06-29  2:09 ` Ruediger Meier
  2017-06-29  2:09 ` [PATCH 2/3] lib/blkdev: remove support for Linux < 2.6 Ruediger Meier
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Ruediger Meier @ 2017-06-29  2:09 UTC (permalink / raw)
  To: util-linux

From: Ruediger Meier <ruediger.meier@ga-group.nl>

We assume that users will have a kernel >= 2.6.0 and removel
references to earlier kernels. There are still a few ones
left.

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
---
 disk-utils/mkfs.cramfs.8   |  2 +-
 disk-utils/mkfs.cramfs.c   |  5 ++-
 include/pt-mbr-partnames.h |  2 +-
 include/pt-mbr.h           |  2 +-
 sys-utils/eject.1          |  6 ++--
 sys-utils/mount.8          | 88 +++++++++-------------------------------------
 sys-utils/readprofile.8    |  6 ++--
 sys-utils/swapon.8         |  2 +-
 sys-utils/umount.8         |  5 ++-
 9 files changed, 30 insertions(+), 88 deletions(-)

diff --git a/disk-utils/mkfs.cramfs.8 b/disk-utils/mkfs.cramfs.8
index 9701e10..31cf84b 100644
--- a/disk-utils/mkfs.cramfs.8
+++ b/disk-utils/mkfs.cramfs.8
@@ -62,7 +62,7 @@ This option is ignored.  Originally the \-s turned on directory entry
 sorting.
 .TP
 \fB\-z\fR
-Make explicit holes.  Use of this option will require 2.3.39 kernel, or newer.
+Make explicit holes.
 .TP
 \fB\-h\fR, \fB\-\-help\fR
 Display help text and exit.
diff --git a/disk-utils/mkfs.cramfs.c b/disk-utils/mkfs.cramfs.c
index 9adc289..ec83f48 100644
--- a/disk-utils/mkfs.cramfs.c
+++ b/disk-utils/mkfs.cramfs.c
@@ -133,12 +133,11 @@ static void __attribute__((__noreturn__)) usage(void)
 		  " -b blksize use this blocksize, must equal page size\n"
 		  " -e edition set edition number (part of fsid)\n"
 		  " -N endian  set cramfs endianness (big|little|host), default host\n"
-		  " -i file    insert a file image into the filesystem "
-		    "(requires >= 2.4.0)\n"
+		  " -i file    insert a file image into the filesystem\n"
 		  " -n name    set name of cramfs filesystem\n"
 		  " -p         pad by %d bytes for boot code\n"
 		  " -s         sort directory entries (old option, ignored)\n"
-		  " -z         make explicit holes (requires >= 2.3.39)\n"
+		  " -z         make explicit holes\n"
 		  " dirname    root of the filesystem to be compressed\n"
 		  " outfile    output file\n"),
 		program_invocation_short_name, PAD_SIZE);
diff --git a/include/pt-mbr-partnames.h b/include/pt-mbr-partnames.h
index 223fa49..c9ab626 100644
--- a/include/pt-mbr-partnames.h
+++ b/include/pt-mbr-partnames.h
@@ -100,7 +100,7 @@
 	{0xf2, N_("DOS secondary")},	/* DOS 3.3+ secondary */
 	{0xfb, N_("VMware VMFS")},
 	{0xfc, N_("VMware VMKCORE")},	/* VMware kernel dump partition */
-	{0xfd, N_("Linux raid autodetect")},/* New (2.2.x) raid partition with
+	{0xfd, N_("Linux raid autodetect")},/* Linux raid partition with
 					       autodetect using persistent
 					       superblock */
 	{0xfe, N_("LANstep")},		/* SpeedStor >1024 cyl. or LANstep */
diff --git a/include/pt-mbr.h b/include/pt-mbr.h
index 177cc74..1f265ed 100644
--- a/include/pt-mbr.h
+++ b/include/pt-mbr.h
@@ -177,7 +177,7 @@ enum {
 	MBR_DOS_SECONDARY_PARTITION	= 0xf2, /* DOS 3.3+ secondary */
 	MBR_VMWARE_VMFS_PARTITION	= 0xfb,
 	MBR_VMWARE_VMKCORE_PARTITION	= 0xfc, /* VMware kernel dump partition */
-	MBR_LINUX_RAID_PARTITION	= 0xfd, /* New (2.2.x) raid partition with autodetect using persistent superblock */
+	MBR_LINUX_RAID_PARTITION	= 0xfd, /* Linux raid partition with autodetect using persistent superblock */
 	MBR_LANSTEP_PARTITION		= 0xfe, /* SpeedStor >1024 cyl. or LANstep */
 	MBR_XENIX_BBT_PARTITION		= 0xff, /* Xenix Bad Block Table */
 };
diff --git a/sys-utils/eject.1 b/sys-utils/eject.1
index 13707a4..f901b23 100644
--- a/sys-utils/eject.1
+++ b/sys-utils/eject.1
@@ -37,9 +37,9 @@ enabled, the drive automatically ejects when the device is closed.
 .TP
 .BR \-c , " \-\-changerslot " \fIslot
 With this option a CD slot can be selected from an ATAPI/IDE CD-ROM changer.
-Linux 2.0 or higher is required to use this feature.  The CD-ROM drive cannot
-be in use (mounted data CD or playing a music CD) for a change request to work.
-Please also note that the first slot of the changer is referred to as 0, not 1.
+The CD-ROM drive cannot be in use (mounted data CD or playing a music CD) for
+a change request to work. Please also note that the first slot of the changer
+is referred to as 0, not 1.
 .TP
 .BR \-d , " \-\-default"
 List the default device name.
diff --git a/sys-utils/mount.8 b/sys-utils/mount.8
index 3bd278e..25c9b4c 100644
--- a/sys-utils/mount.8
+++ b/sys-utils/mount.8
@@ -307,8 +307,7 @@ option is similar, with the restriction that the user must be
 member of the group of the special file.
 
 .SS Bind mounts
-Since Linux 2.4.0 it is possible to remount part of the
-file hierarchy somewhere else.  The call is:
+Remount part of the file hierarchy somewhere else.  The call is:
 
 .RS
 .br
@@ -402,9 +401,9 @@ file.
 .RE
 
 .SS The move operation
-Since Linux 2.5.1 it is possible to atomically move a
+Move a
 .B mounted tree
-to another place.  The call is:
+to another place (atomically).  The call is:
 
 .RS
 .br
@@ -982,8 +981,6 @@ Permit execution of binaries.
 .TP
 .B noexec
 Do not permit direct execution of any binaries on the mounted filesystem.
-(Until recently it was possible to run binaries anyway using a command like
-/lib/ld*.so /mnt/binary.  This trick fails since Linux 2.4.25 / 2.6.0.)
 .TP
 .B group
 Allow an ordinary user to mount the filesystem if one
@@ -1555,7 +1552,7 @@ configuration.
 
 .SS "Mount options for ext2"
 The `ext2' filesystem is the standard Linux filesystem.
-Since Linux 2.5.46, for most mount options the default
+For most mount options the default
 is determined by the filesystem superblock.  Set them with
 .BR tune2fs (8).
 .TP
@@ -1652,17 +1649,9 @@ These options determine who can use the reserved blocks.
 Instead of block 1, use block
 .I n
 as superblock.  This could be useful when the filesystem has been damaged.
-(Earlier, copies of the superblock would be made every 8192 blocks: in
-block 1, 8193, 16385, \&...\& (and one got thousands of copies on
-a big filesystem).  Since version 1.08,
-.B mke2fs
-has a \-s (sparse superblock) option to reduce the number of backup
-superblocks, and since version 1.15 this is the default.  Note
-that this may mean that ext2 filesystems created by a recent
-.B mke2fs
-cannot be mounted r/w under Linux 2.0.*.)
-The block number here uses 1\ k units.  Thus, if you want to use logical
-block 32768 on a filesystem with 4\ k blocks, use "sb=131072".
+See
+.B dumpe2fs /dev/foo | grep superblock
+to list alternatively usable superblocks.
 .TP
 .BR user_xattr | nouser_xattr
 Support "user." extended attributes (or not).
@@ -1937,13 +1926,11 @@ The value is given in octal.
 Set the umask applied to directories only.
 The default is the umask of the current process.
 The value is given in octal.
-.\" Present since Linux 2.5.43.
 .TP
 .BI fmask= value
 Set the umask applied to regular files only.
 The default is the umask of the current process.
 The value is given in octal.
-.\" Present since Linux 2.5.43.
 .TP
 .BI allow_utime= value
 This option controls the permission check of mtime/atime.
@@ -1993,33 +1980,7 @@ Sets the codepage for converting to shortname characters on FAT
 and VFAT filesystems.  By default, codepage 437 is used.
 .TP
 .BI conv= mode
-The
-.I fat
-filesystem can perform CRLF<-->NL conversion (MS-DOS text format to UNIX text
-format) in the kernel.  The following conversion \fImode\fRs are available:
-.RS
-.TP
-.BR b [ inary ]
-No translation is performed.  This is the default.
-.TP
-.BR t [ ext ]
-CRLF<-->NL translation is performed on all files.
-.TP
-.BR a [ uto ]
-CRLF<-->NL translation is performed on all files that don't have a
-"well-known binary" extension.  The list of known extensions can be found at
-the beginning of
-.I fs/fat/misc.c
-(as of 2.0, the list is: exe, com, bin, app, sys, drv, ovl, ovr, obj,
-lib, dll, pif, arc, zip, lha, lzh, zoo, tar, z, arj, tz, taz, tzp, tpz,
-gz, tgz, deb, gif, bmp, tif, gl, jpg, pcx, tfm, vf, gf, pk, pxl, dvi).
-.PP
-Programs that do computed lseeks won't like in-kernel text conversion.
-Several people have had their data ruined by this translation.  Beware!
-
-For filesystems mounted in binary mode, a conversion tool
-(fromdos/todos) is available.  This option is obsolete.
-.RE
+This option is obsolete and may fail or being ignored.
 .TP
 .BI cvf_format= module
 Forces the driver to use the CVF (Compressed Volume File) module
@@ -2190,18 +2151,8 @@ Convert all files names to lower case, or leave them.
 (Default:
 .BR case=lower .)
 .TP
-.BR conv= { binary | text | auto }
-For
-.BR conv=text ,
-delete some random CRs (in particular, all followed by NL)
-when reading a file.
-For
-.BR conv=auto ,
-choose more or less at random between
-.BR conv=binary " and " conv=text .
-For
-.BR conv=binary ,
-just read what is in the file.  This is the default.
+.BI conv= mode
+This option is obsolete and may fail or being ignored.
 .TP
 .B nocheck
 Do not abort mounting when certain consistency checks fail.
@@ -2267,8 +2218,7 @@ but also apply Acorn extensions if present.
 .BI mode= value
 For non-Rock Ridge volumes, give all files the indicated mode.
 (Default: read and execute permission for everybody.)
-Since Linux 2.1.37 one no longer needs to specify the mode in
-decimal. (Octal is indicated by a leading 0.)
+Octal mode values require a leading 0.
 .TP
 .B unhide
 Also show hidden and associated files.
@@ -2280,12 +2230,8 @@ Set the block size to the indicated value.
 (Default:
 .BR block=1024 .)
 .TP
-.BR conv= { a [ uto ]| b [ inary ]| m [ text ]| t [ ext ]}
-(Default:
-.BR conv=binary .)
-Since Linux 1.3.54 this option has no effect anymore.
-(And non-binary settings used to be very dangerous,
-possibly leading to silent data corruption.)
+.BI conv= mode
+This option is obsolete and may fail or being ignored.
 .TP
 .B cruft
 If the high byte of the file length contains other garbage,
@@ -2293,10 +2239,10 @@ set this mount option to ignore the high order bits of the file length.
 This implies that a file cannot be larger than 16\ MB.
 .TP
 .BI session= x
-Select number of session on multisession CD. (Since 2.3.4.)
+Select number of session on multisession CD.
 .TP
 .BI sbsector= xxx
-Session begins from sector xxx. (Since 2.3.4.)
+Session begins from sector xxx.
 .LP
 The following options are the same as for vfat and specifying them only makes
 sense when using discs encoded using Microsoft's Joliet extensions.
@@ -2389,12 +2335,10 @@ and the current version of
 Character set to use when returning file names.
 Unlike VFAT, NTFS suppresses names that contain
 nonconvertible characters.  Deprecated.
-.\" since 2.5.11
 .TP
 .BI nls= name
 New name for the option earlier called
 .IR iocharset .
-.\" since 2.5.11
 .TP
 .B utf8
 Use UTF-8 for converting file names.
@@ -2461,7 +2405,7 @@ These options are recognized, but have no effect as far as I can see.
 
 .SS "Mount options for ramfs"
 Ramfs is a memory based filesystem.  Mount it and you have it.  Unmount it
-and it is gone.  Present since Linux 2.3.99pre4.
+and it is gone.
 There are no mount options.
 
 .SS "Mount options for reiserfs"
diff --git a/sys-utils/readprofile.8 b/sys-utils/readprofile.8
index 60a7ada..9686380 100644
--- a/sys-utils/readprofile.8
+++ b/sys-utils/readprofile.8
@@ -52,9 +52,9 @@ fly.
 On some architectures it is possible to alter the frequency at which
 the kernel delivers profiling interrupts to each CPU.  This option
 allows you to set the frequency, as a multiplier of the system clock
-frequency, HZ.  This is supported on i386-SMP (2.2 and 2.4 kernel)
-and also on sparc-SMP and sparc64-SMP (2.4 kernel).  This option also
-resets the profiling buffer, and requires superuser privileges.
+frequency, HZ. Linux 2.6.16 dropped multiplier support for most systems.
+This option also resets the profiling buffer, and requires superuser
+privileges.
 .TP
 \fB\-p\fR, \fB\-\-profile\fR \fIpro-file\fR
 Specify a different profiling buffer, which by default is
diff --git a/sys-utils/swapon.8 b/sys-utils/swapon.8
index 2a9a826..3c66c81 100644
--- a/sys-utils/swapon.8
+++ b/sys-utils/swapon.8
@@ -152,7 +152,7 @@ When no priority is defined, it defaults to \-1.
 .TP
 .BR \-s , " \-\-summary"
 Display swap usage summary by device.  Equivalent to "cat /proc/swaps".
-Not available before Linux 2.1.25.  This output format is DEPRECATED in favour
+This output format is DEPRECATED in favour
 of \fB\-\-show\fR that provides better control on output data.
 .TP
 .BR \-\-show [ =\fIcolumn\fR ...]
diff --git a/sys-utils/umount.8 b/sys-utils/umount.8
index 80df50c..1e27f01 100644
--- a/sys-utils/umount.8
+++ b/sys-utils/umount.8
@@ -105,8 +105,7 @@ that were unmounted earlier with the
 option.
 .TP
 .BR \-f , " \-\-force"
-Force an unmount (in case of an unreachable NFS system).  (Requires kernel
-2.1.116 or later.)
+Force an unmount (in case of an unreachable NFS system).
 
 Note that this option does not guarantee that umount command does not hang.
 It's strongly recommended to use absolute paths without symlinks to avoid
@@ -119,7 +118,7 @@ By default such a helper program is called if it exists.
 .BR \-l , " \-\-lazy"
 Lazy unmount.  Detach the filesystem from the file hierarchy now,
 and clean up all references to this filesystem as soon as it is not busy
-anymore.  (Requires kernel 2.4.11 or later.)
+anymore.
 .TP
 .BR \-n , " \-\-no\-mtab"
 Unmount without writing in
-- 
1.8.5.6


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 2/3] lib/blkdev: remove support for Linux < 2.6
  2017-06-29  2:09 [PATCH 0/3] officially drop Linux < 2.6 Ruediger Meier
  2017-06-29  2:09 ` [PATCH 1/3] docs: remove some old history from manpages Ruediger Meier
@ 2017-06-29  2:09 ` Ruediger Meier
  2017-06-29  2:09 ` [PATCH 3/3] docs: correct line(1) deprecation comment Ruediger Meier
  2017-06-29 10:57 ` [PATCH 0/3] officially drop Linux < 2.6 Karel Zak
  3 siblings, 0 replies; 5+ messages in thread
From: Ruediger Meier @ 2017-06-29  2:09 UTC (permalink / raw)
  To: util-linux

From: Ruediger Meier <ruediger.meier@ga-group.nl>

Remove a hack for kernels between  2.4.15 and 2.4.17

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
---
 lib/blkdev.c | 13 ++-----------
 1 file changed, 2 insertions(+), 11 deletions(-)

diff --git a/lib/blkdev.c b/lib/blkdev.c
index 2b62f09..0616142 100644
--- a/lib/blkdev.c
+++ b/lib/blkdev.c
@@ -91,18 +91,9 @@ blkdev_get_size(int fd, unsigned long long *bytes)
 #endif
 
 #ifdef BLKGETSIZE64
-	{
-#ifdef __linux__
-		int ver = get_linux_version();
-
-		/* kernels 2.4.15-2.4.17, had a broken BLKGETSIZE64 */
-		if (ver >= KERNEL_VERSION (2,6,0) ||
-		   (ver >= KERNEL_VERSION (2,4,18) && ver < KERNEL_VERSION (2,5,0)))
+	if (ioctl(fd, BLKGETSIZE64, bytes) >= 0)
+		return 0;
 #endif
-			if (ioctl(fd, BLKGETSIZE64, bytes) >= 0)
-				return 0;
-	}
-#endif /* BLKGETSIZE64 */
 
 #ifdef BLKGETSIZE
 	{
-- 
1.8.5.6


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [PATCH 3/3] docs: correct line(1) deprecation comment
  2017-06-29  2:09 [PATCH 0/3] officially drop Linux < 2.6 Ruediger Meier
  2017-06-29  2:09 ` [PATCH 1/3] docs: remove some old history from manpages Ruediger Meier
  2017-06-29  2:09 ` [PATCH 2/3] lib/blkdev: remove support for Linux < 2.6 Ruediger Meier
@ 2017-06-29  2:09 ` Ruediger Meier
  2017-06-29 10:57 ` [PATCH 0/3] officially drop Linux < 2.6 Karel Zak
  3 siblings, 0 replies; 5+ messages in thread
From: Ruediger Meier @ 2017-06-29  2:09 UTC (permalink / raw)
  To: util-linux

From: Ruediger Meier <ruediger.meier@ga-group.nl>

Signed-off-by: Ruediger Meier <ruediger.meier@ga-group.nl>
---
 Documentation/deprecated.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/Documentation/deprecated.txt b/Documentation/deprecated.txt
index b7f64df..82b80c1 100644
--- a/Documentation/deprecated.txt
+++ b/Documentation/deprecated.txt
@@ -50,7 +50,7 @@ Why:    udevd links libblkid directly; the 'list' is unnecessary, use lsblk(8)
 --------------------------
 
 What:   line(1) command
-Why:    useless, nobody uses this command, head(1) is better
+Why:    use the read(1) command
 
 --------------------------
 
-- 
1.8.5.6


^ permalink raw reply related	[flat|nested] 5+ messages in thread

* Re: [PATCH 0/3] officially drop Linux < 2.6
  2017-06-29  2:09 [PATCH 0/3] officially drop Linux < 2.6 Ruediger Meier
                   ` (2 preceding siblings ...)
  2017-06-29  2:09 ` [PATCH 3/3] docs: correct line(1) deprecation comment Ruediger Meier
@ 2017-06-29 10:57 ` Karel Zak
  3 siblings, 0 replies; 5+ messages in thread
From: Karel Zak @ 2017-06-29 10:57 UTC (permalink / raw)
  To: Ruediger Meier; +Cc: util-linux

On Thu, Jun 29, 2017 at 04:09:05AM +0200, Ruediger Meier wrote:
>  Documentation/deprecated.txt |  2 +-
>  disk-utils/mkfs.cramfs.8     |  2 +-
>  disk-utils/mkfs.cramfs.c     |  5 +--
>  include/pt-mbr-partnames.h   |  2 +-
>  include/pt-mbr.h             |  2 +-
>  lib/blkdev.c                 | 13 +------
>  sys-utils/eject.1            |  6 +--
>  sys-utils/mount.8            | 88 ++++++++------------------------------------
>  sys-utils/readprofile.8      |  6 +--
>  sys-utils/swapon.8           |  2 +-
>  sys-utils/umount.8           |  5 +--
>  11 files changed, 33 insertions(+), 100 deletions(-)

Applied, thanks.

-- 
 Karel Zak  <kzak@redhat.com>
 http://karelzak.blogspot.com

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-06-29 10:57 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-06-29  2:09 [PATCH 0/3] officially drop Linux < 2.6 Ruediger Meier
2017-06-29  2:09 ` [PATCH 1/3] docs: remove some old history from manpages Ruediger Meier
2017-06-29  2:09 ` [PATCH 2/3] lib/blkdev: remove support for Linux < 2.6 Ruediger Meier
2017-06-29  2:09 ` [PATCH 3/3] docs: correct line(1) deprecation comment Ruediger Meier
2017-06-29 10:57 ` [PATCH 0/3] officially drop Linux < 2.6 Karel Zak

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.