I meant to copy the list on this one. ---------- Forwarded Message ----------
Subject: Re: [Jfs-discussion] Tool for setting/getting volume label and UUID on jfs Date: Thu, 11 Jul 2002 08:56:11 -0500 From: Dave Kleikamp <[EMAIL PROTECTED]> To: Bernhard Kaindl <[EMAIL PROTECTED]> On Thursday 11 July 2002 08:22, Bernhard Kaindl wrote: > Hello! > > we would like to support mount by volume labels(and/or uuid) for > JFS in UnitedLinux. > > For this, jfsutils needs to support a tool that is able to get and > set the volume label(and/or uuid) of a jfs filesystem without the > need to reformat the filesystem. > > There are examples how it can be done like tune2fs, e2label, > reiserfstune and xfs_admin. Yes, we need a tool like tune2fs. Unfortunately, there is no standard for naming file system utilities. We have discussed renaming some of our utilities to more conventional names but we haven't gotten there yet. We have discussed prefixing our utilities with jfs_. This would lead to jfs_tune. I like tune better than admin since users are more familiar with tune2fs. > The output should only show the requested information and should be > constant for future versions. > > I think the most easyest way would be the syntax of xfs_admin: > > -l Print the current filesystem label. I would prefer the flags would be more consistent with tune2fs. The tool would be easier to use if you would invoke it the same way you would for an ext2/3 file system. The -l would therefore display all of the information in the superblock. > -u Print the current filesystem UUID (Universally Unique > IDentifier). This conflicts with tune2fs's -u flag. > -L label > Set the filesystem label. XFS filesystem labels can > be at most 12 characters long; if label is longer > than 12 characters, xfs_admin will truncate it and > print a warning message. The filesystem label can be > cleared using the special ``--'' value for label. > > -U UUID > Set the UUID of the filesystem. A sample UUID looks > like this: "c1b9d5a2-f162-11cf-9ece-0020afc76f16". > The uuid may also be null, which will set the > filesystem UUID to the null UUID. The uuid may also > be generate, which will generate a new UUID for the > filesystem. -L and -U are consistent with tune2fs > This way every thing can be set and get using easy rememberable > options and the info can be get in any good parseable form. As I said above, I think it would be easier to use if the flags behaved like tune2fs. > Can such tool be added with the next release of jfsutils? I'm not sure if it will make the next release, but I want to have something soon. As Christoph stated, any contributions of source code would speed things up. > Thanks, > Bernhard Kaindl Thanks, Shaggy -- David Kleikamp IBM Linux Technology Center _______________________________________________ Jfs-discussion mailing list [EMAIL PROTECTED] http://www-124.ibm.com/developerworks/oss/mailman/listinfo/jfs-discussion